How do I get the command prompt to start on a new line in my command window.

조회 수: 8 (최근 30일)
After I enter my program to test, the ">>" appear immediately after the answer and not on a new line.

채택된 답변

bym
bym 2012년 7월 21일
you need to add a new line '\n' to your display of the answer:
fprintf('no new line')
no new line>>
>> fprintf('new line\n')
new line
>>

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by