Matlab examples: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<pre> s = 'XYZ'; ss = {}; %ss{1} = s; for idx = 1:400 ss{idx} = [s num2str(idx)]; end XYZ = []; for idx = 1:400 eval(['XYZ = [XYZ; ' ss{idx} '];']); end Z = XYZ...") |
(No difference)
|
Revision as of 18:37, 7 June 2011
s = 'XYZ'; ss = {}; %ss{1} = s; for idx = 1:400 ss{idx} = [s num2str(idx)]; end XYZ = []; for idx = 1:400 eval(['XYZ = [XYZ; ' ss{idx} '];']); end Z = XYZ(:,3); reshape(Z,481,400); [X,Y] = meshgrid(1:481,1:400); surface(X,Y,Z,'EdgeColor','none')