Add text and matrix in a figure
Show older comments
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
Answers (2)
Shashank Prasanna
on 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
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!