Mercurial > hg > octave-nkf
diff scripts/plot/legend.m @ 14252:4e6436a60b62
Changes to allow plot demos to be run under Matlab.
* hold.m, legend.m
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sun, 22 Jan 2012 17:56:46 -0500 |
parents | 4506eade9f04 |
children | f3d52523cde1 |
line wrap: on
line diff
--- a/scripts/plot/legend.m +++ b/scripts/plot/legend.m @@ -1037,7 +1037,7 @@ %! for i = 1:5 %! h = plot (1:100, i + rand(100,1)); hold on; %! set (h, 'color', colororder(i,:)); -%! labels = {labels{:}, cstrcat('Signal ', num2str (i))}; +%! labels = {labels{:}, ['Signal ', num2str(i)]}; %! end %! hold off; %! title ('Signals with random offset and uniform noise'); @@ -1052,7 +1052,7 @@ %! for i = 1:5 %! h = plot (1:100, i + rand (100,1)); hold on; %! set (h, 'color', colororder(i,:)); -%! labels = {labels{:}, cstrcat('Signal ', num2str (i))}; +%! labels = {labels{:}, ['Signal ', num2str(i)]}; %! end %! hold off; %! title ('Signals with random offset and uniform noise');