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

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
>>

1 件のコメント

Aaron
Aaron 2012 年 7 月 21 日
Thanks....I keep forgetting that when writing programs!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

質問済み:

2012 年 7 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by