How to set numbers in legend
11 views (last 30 days)
Show older comments
I'm using this code to set the numbers in the legend, see attached file.
This is what happens
legend( sprintf('%g\n', vars))
4 Comments
Rik
on 26 Nov 2018
Then you should provide the ID of the line, not the data itself. What is the content of vars? Try to make a self-contained example so we can fix your code instead of guessing what you did and trying to fix that.
Answers (0)
See Also
Categories
Find more on Legend 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!