Line Breaks in command window

조회 수: 86 (최근 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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by