Matlab examples
Revision as of 18:37, 7 June 2011 by Mbolding@uab.edu (talk | contribs) (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...")
Attention: Research Computing Documentation has Moved
https://docs.rc.uab.edu/
https://docs.rc.uab.edu/
Please use the new documentation url https://docs.rc.uab.edu/ for all Research Computing documentation needs.
As a result of this move, we have deprecated use of this wiki for documentation. We are providing read-only access to the content to facilitate migration of bookmarks and to serve as an historical record. All content updates should be made at the new documentation site. The original wiki will not receive further updates.
Thank you,
The Research Computing Team
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')