Line Breaks in command window
26 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jarren Berdal
le 9 Août 2020
Réponse apportée : Walter Roberson
le 9 Août 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
0 commentaires
Réponse acceptée
Walter Roberson
le 9 Août 2020
disp("SPACING"+newline+newline+"CODE")
fprintf("SPACING\n\nCODE\n")
disp("SPACING");fprintf('\n'); disp("CODE")
disp("SPACING"+newline+newline+"CODE")
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!