How to convert fprintf from single row to multiple rows?
Ältere Kommentare anzeigen
Hi! I just started using Matlab a couple of days ago. How can I convert this single row into multiple rows?
Akzeptierte Antwort
Weitere Antworten (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 Kommentare
Christoppe
am 25 Jun. 2022
Christoppe
am 25 Jun. 2022
Christoppe
am 25 Jun. 2022
Adam Danz
am 25 Jun. 2022
Please provide the inputs the user should enter.
Also, please describe again what the problem is because it's still not entirely clear.
Christoppe
am 25 Jun. 2022
Christoppe
am 25 Jun. 2022
Kategorien
Mehr zu Function Creation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!