Borrar filtros
Borrar filtros

Line Breaks in command window

102 visualizaciones (últimos 30 días)
Jarren Berdal
Jarren Berdal el 9 de Ag. de 2020
Respondida: Walter Roberson el 9 de Ag. de 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

Respuesta aceptada

Walter Roberson
Walter Roberson el 9 de Ag. de 2020
disp("SPACING"+newline+newline+"CODE")
fprintf("SPACING\n\nCODE\n")
disp("SPACING");fprintf('\n'); disp("CODE")
disp("SPACING"+newline+newline+"CODE")

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by