How to export data used to make MATLAB figure?
14 views (last 30 days)
Show older comments
Hello, I have a matlab figre with tabs. How do I extract data from each tab and import into excel? Thank you.
2 Comments
Answers (1)
prasanth s
on 19 Jan 2023
fig=openfig('SophiesFigure_nanodomains.fig');
data1=fig.Parent.Children(2).CurrentAxes.Children.YData %histogram
xdata=ww.CurrentObject.Parent.Children(1).Children(2).Children(2).XData; %scatter
ydata=ww.CurrentObject.Parent.Children(1).Children(2).Children(2).YData; %scatter
0 Comments
See Also
Categories
Find more on Bar Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!