multiple datatip value extraction
조회 수: 46 (최근 30일)
이전 댓글 표시
i have plotted my graph and have marked certain peaks in the graph with datatips. now i would like to extract all the marked values to either work space or anywer else so that i can plot those data again. i'm using R2009b
댓글 수: 0
채택된 답변
Richard
2012년 5월 21일
Hi Kumaresan, You can get the values of datatip positions using the datacursormode and getCursorInfo functions:
d = datacursormode(fig);
vals = getCursorInfo(d);
where fig is the handle to your figure and vals is a structure containing positions and data indices.
댓글 수: 2
Walter Roberson
2012년 5월 24일
datacursormode() must be applied to a figure as a whole, not to a plot within a figure.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Bar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!