how to get the co-ordinate values & labels when click on the plotted line
2 ビュー (過去 30 日間)
古いコメントを表示
i have plotted 3 signals(eg:3 straight lines) on axes(or figure)
how can i get the x,y values & the name of the signal when i click on the particular plotted line
thanks in advance
0 件のコメント
採用された回答
Muruganandham Subramanian
2012 年 12 月 10 日
For e.g.
try this code:
a=[1 2 3 4];
b=[5 6 7 8];
plot(a,b)
legend('signal1');
After this, goto Tools in plotted graph, Enable Data cursor and then Options --> Enable display cursor in window. You can see the results seperate window
0 件のコメント
その他の回答 (1 件)
Muruganandham Subramanian
2012 年 12 月 7 日
編集済み: Muruganandham Subramanian
2012 年 12 月 7 日
In plotted signal, goto Tools->enable datacursor, for signal name goto insert-> legend
3 件のコメント
Muruganandham Subramanian
2012 年 12 月 10 日
編集済み: Muruganandham Subramanian
2012 年 12 月 10 日
Goto tools -> options->enable display cursor in window
参考
カテゴリ
Help Center および File Exchange で Labels and Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!