Extract XY data from figure plotted in appdesginer
8 views (last 30 days)
Show older comments
Hi,
I have seen some examples on how to extract data from Matlab figure but could it be done in GUI where figure was plotted by app designer?
Thank you,
Sasha
0 Comments
Answers (1)
Ameer Hamza
on 5 Jun 2020
Whether the data is plotted on axes() or uiaxes(), you can extract it using the handle of line object. Something like this
l = findall(fig, 'type', 'line') % fig is the handle of figure or uifigure object
l.XData % xdata of line
l.YData % ydata of line
See Also
Categories
Find more on Develop uifigure-Based Apps in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!