How to export data used to make MATLAB figure?

6 次查看(过去 30 天)
Hello, I have a matlab figre with tabs. How do I extract data from each tab and import into excel? Thank you.
  2 个评论
dpb
dpb 2023-1-18
Why don't you save the data when creating the figure instead?
Sophie Astrof
Sophie Astrof 2023-1-18
I am running a application. It analyzes an image and then plots the data, but I don't know where the data that is being ploted stored.

请先登录,再进行评论。

回答(1 个)

prasanth s
prasanth s 2023-1-19
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

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by