How to convert fprintf from single row to multiple rows?
Mostrar comentarios más antiguos
Hi! I just started using Matlab a couple of days ago. How can I convert this single row into multiple rows?
Respuesta aceptada
Más respuestas (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 comentarios
Christoppe
el 25 de Jun. de 2022
Christoppe
el 25 de Jun. de 2022
Christoppe
el 25 de Jun. de 2022
Adam Danz
el 25 de Jun. de 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
el 25 de Jun. de 2022
Christoppe
el 25 de Jun. de 2022
Categorías
Más información sobre Scripts en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!