fprintf question about column
Show older comments
x=0:0.168:1.68;
Y=0:0.015:0.15;
nodes=1:1:61;
disp('nodes x-position Y-position temperature ')
fprintf('%2.2f %2.2f %2.2f %4.6f\n',[nodes(:)',x(:)',Y(:)'])
how to make nodes go under nodes and go down in columns and x in x postioin...
Answers (1)
x=0:0.168:1.68;
Y=0:0.015:0.15;
nodes=1:1:numel(Y);
temp = sqrt(nodes);
fprintf('%9s %15s %15s %15s\n','nodes','x-position','Y-position','temperature')
fprintf('%9u %15.2f %15.2f %15.6f\n',[nodes;x;Y;temp])
Categories
Find more on Aerospace Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!