How to set numbers in legend
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Rik
2018 年 11 月 26 日
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.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!