How to export data used to make MATLAB figure?

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?
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일

0 개 추천

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

카테고리

제품

릴리스

R2022b

태그

질문:

2023년 1월 18일

답변:

2023년 1월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by