next line, new line! in the text( ) code
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (1)
Jan
le 9 Nov 2012
text(5, 5, ['MATLAB', char(10), 'Line 2']);
text(10, 5, {'MATLAB2', 'Line 2'});
1 commentaire
Jim Royalty
le 17 Mai 2017
This answer works. My \n didn't.
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!