fprintf question about column
古いコメントを表示
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...
回答 (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])
カテゴリ
ヘルプ センター および File Exchange で Variables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!