--- text.m 2011-08-14 12:24:40.000000000 -0400 +++ text.m.jwe 2011-08-14 12:22:47.000000000 -0400 @@ -49,15 +49,11 @@ label = varargin{offset}; varargin(1:offset) = []; - if (ischar (label)) - nt = size (label, 1); - elseif (iscellstr (label)) - nt = numel (label); - endif nx = numel (x); ny = numel (y); nz = numel (z); - if (ischar (label)) + if (ischar (label) || isnumeric (label)) + nt = size (label, 1); if (nx > 1 && nt == 1) ## Mutiple text objects with same string label = repmat ({label}, [nx, 1]); @@ -65,11 +61,12 @@ elseif (nx > 1 && nt == nx) ## Mutiple text objects with different strings label = cellstr (label); - elseif (ischar (label)) + else ## Single text object with one or more lines label = {label}; endif - elseif (iscellstr (label)) + elseif (iscell (label)) + nt = numel (label); if (nx > 1 && nt == 1) label = repmat ({label}, [nx, 1]); nt = nx;