next line, new line! in the text( ) code
Mostrar comentarios más antiguos
I want to write text using text code
text(5,5,['MATLAB','\n']);
but '\n' doesn't work.
I want a textbox consisting of three text lines
Respuesta aceptada
Más respuestas (1)
Jan
el 9 de Nov. de 2012
text(5, 5, ['MATLAB', char(10), 'Line 2']);
text(10, 5, {'MATLAB2', 'Line 2'});
1 comentario
Jim Royalty
el 17 de Mayo de 2017
This answer works. My \n didn't.
Categorías
Más información sobre Annotations en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!