Matlab examples

From UABgrid Documentation
Revision as of 13:37, 7 June 2011 by Mbolding@uab.edu (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



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')

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox