List functions on fprintf
2 ビュー (過去 30 日間)
古いコメントを表示
How do you list something on fprintf? I want them in a column than kyou
2 件のコメント
Jan
2011 年 10 月 31 日
And what do you want to appear in this list? Have you read "help fprintf" already?
採用された回答
Walter Roberson
2011 年 10 月 31 日
fprintf('%10.2f\n', YourMatrix)
3 件のコメント
Walter Roberson
2011 年 10 月 31 日
If you need to display a mix of numbers and strings on a single line, then you need to loop over each line. For example:
for K = 1:length(YourMatrix)
fprintf('%10.2f %s\n', YourMatrix(K), YourStrings(K,:));
end
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!