multiple datatip value extraction
83 次查看(过去 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!