Add text and matrix in a figure
Afficher commentaires plus anciens
Hi everyone, I run a code and the result is matrix (1x6) and a curve. I want to plot the curve and have as a legend the matrix with a text. How is that possible? Thanks
Réponses (2)
Shashank Prasanna
le 16 Jan 2013
0 votes
Here is a work around albeit crude:
plot(rand(5,1)),legend({['1' ' 2' char(10) '3' ' 4' ]})
char(10) adds the new line
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!