multiple datatip value extraction
58 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Richard
am 21 Mai 2012
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 Kommentare
Walter Roberson
am 24 Mai 2012
datacursormode() must be applied to a figure as a whole, not to a plot within a figure.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!