How to export data used to make MATLAB figure?

8 ビュー (過去 30 日間)
Sophie Astrof
Sophie Astrof 2023 年 1 月 18 日
回答済み: prasanth s 2023 年 1 月 19 日
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 Center および File ExchangeHistograms についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by