next line, new line! in the text( ) code
382 visualizzazioni (ultimi 30 giorni)
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
0 Commenti
Risposta accettata
Image Analyst
il 9 Nov 2012
Modificato: Image Analyst
il 9 Nov 2012
Try sprintf:
message = sprintf('Line #1\nThe second line.\nAnd finally a third line.');
plot(1:20);
text(5, 5, message, 'FontSize', 20, 'Color', [.6 .2 .6]);
0 Commenti
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Numeric Types in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!