How to show a legend consisted of more than one variable
2 ビュー (過去 30 日間)
古いコメントを表示
Helle everyone,
I want to show some intervals of graph as text in the legend. For example: 'the graph is in intervals (2-4) and (6-8) and ... red'. How can show these unknown number (the number varies by every diffenrent input data)in legend?
I know the solution for a vector size (1,2) as following:
LEGEND=['the graph is in interval (' vector(1) '-' vector(2) ') red'];
set(plot name,{'DisplayName'},{LEGEND});
legend show;
0 件のコメント
回答 (1 件)
José-Luis
2016 年 6 月 30 日
Almost there
str = ['the graph is in interval (', num2str(vector(1)), '-', num2str(vector(2)), ') red'];
参考
カテゴリ
Help Center および File Exchange で Legend についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!