Line Breaks in command window

87 ビュー (過去 30 日間)
Jarren Berdal
Jarren Berdal 2020 年 8 月 9 日
回答済み: Walter Roberson 2020 年 8 月 9 日
Is there a way to have a line of code that creates a spacing between the last code and the next code.
Ex
disp('SPACING')
"SPACING CODE"
disp('CODE')
In command window it would look like:
SPACING
CODE
----not----
SPACING
CODE

採用された回答

Walter Roberson
Walter Roberson 2020 年 8 月 9 日
disp("SPACING"+newline+newline+"CODE")
fprintf("SPACING\n\nCODE\n")
disp("SPACING");fprintf('\n'); disp("CODE")
disp("SPACING"+newline+newline+"CODE")

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by