How to convert fprintf from single row to multiple rows?
古いコメントを表示
Hi! I just started using Matlab a couple of days ago. How can I convert this single row into multiple rows?
採用された回答
その他の回答 (1 件)
I assume you want to show each numeric value in a new line. To do that, add a new line control character where you want to insert a new line,
fprintf('%11.5f\n%11.5f\n%11.5f\n%11.5f\n%11.5f\n', rand(1,6))
6 件のコメント
Christoppe
2022 年 6 月 25 日
Christoppe
2022 年 6 月 25 日
Christoppe
2022 年 6 月 25 日
Adam Danz
2022 年 6 月 25 日
Please provide the inputs the user should enter.
Also, please describe again what the problem is because it's still not entirely clear.
Christoppe
2022 年 6 月 25 日
Christoppe
2022 年 6 月 25 日
カテゴリ
ヘルプ センター および File Exchange で Function Creation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!