next line, new line! in the text( ) code
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
Jan
il 9 Nov 2012
text(5, 5, ['MATLAB', char(10), 'Line 2']);
text(10, 5, {'MATLAB2', 'Line 2'});
1 Commento
Jim Royalty
il 17 Mag 2017
This answer works. My \n didn't.
Categorie
Scopri di più su Characters and Strings in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!