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에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!