Line Breaks in command window

32 Ansichten (letzte 30 Tage)
Jarren Berdal
Jarren Berdal am 9 Aug. 2020
Beantwortet: Walter Roberson am 9 Aug. 2020
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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 9 Aug. 2020
disp("SPACING"+newline+newline+"CODE")
fprintf("SPACING\n\nCODE\n")
disp("SPACING");fprintf('\n'); disp("CODE")
disp("SPACING"+newline+newline+"CODE")

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by