joinstr — concatenation of strings and strings vectors
car=joinstr(varargin)
objects which can be strings or column vectors of strings; each vector must have the same size
car = a string
1) namex=['x1' 'x2']; namec=['a1' '(a2-a1)'];str=joinstr('namec','*','namex','+') 2) joinstr('(',res('namex'),')*(',string(res('beta')),')+')+')' Example 1 gives str='a1*x1+(a2-a1)*x2'. Example 2 (taken from prevstat) takes the names of variables from, say, an ols regression, multiply each name by the value of the corresponding estimated coefficient and them adds all.