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!