Add text and matrix in a figure
Mostrar comentarios más antiguos
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
Respuestas (2)
Shashank Prasanna
el 16 de En. de 2013
0 votos
Here is a work around albeit crude:
plot(rand(5,1)),legend({['1' ' 2' char(10) '3' ' 4' ]})
char(10) adds the new line
Categorías
Más información sobre Annotations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!