필터 지우기
필터 지우기

New line after fprintf

조회 수: 139 (최근 30일)
Joseph Melo Manalo
Joseph Melo Manalo 2020년 3월 17일
댓글: Joseph Melo Manalo 2020년 3월 17일
Good Day Everyone! I am just a new user and still trying to learn.
Is there a way to change the "Untitled"? And is there a way that the ">>" shows below the "Density = 0.62428 lb/ft^3" instead of after? I know this is only a small problem, but It hurt my eyes and I'm curious. Thank you in advance!

채택된 답변

Stephen23
Stephen23 2020년 3월 17일
편집: Stephen23 2020년 3월 17일
Add a newline at the end of the fprintf format string:
fprintf('....\n',D)
% ^^ newline!
  댓글 수: 3
Stephen23
Stephen23 2020년 3월 17일
편집: Stephen23 2020년 3월 17일
"Is there a way to change the "Untitled"? "
"Untitled" is the name of your script. When you run the script, MATLAB will display its name. Therefore if you want to change the "Untitled" to something else, you need to change the name of your script (this just means that you change its filename). Note that the name will need to start with a letter and contain only letters, digits, and underscore characters.
Joseph Melo Manalo
Joseph Melo Manalo 2020년 3월 17일
Thank you so much for your help! Now I get it!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by