How to extract data points from a .fig scatter plot?

조회 수: 59 (최근 30일)
Benjamin
Benjamin 2020년 8월 26일
댓글: Benjamin 2020년 8월 26일
Hello
Dear experts,
I have a .fig scatter plot (actual data vs. predicted data), and I need to extract the data points. is the .fig file able to show the X and Y values?
Regards,

채택된 답변

dpb
dpb 2020년 8월 26일
openfig('YourFigFile.fig')
hSc=findobj(gcf,'Type','scatter');
.X|Y|ZData properties are available from the scatter object handle thus obtained.
  댓글 수: 3
dpb
dpb 2020년 8월 26일
편집: dpb 2020년 8월 26일
Well, you have to retrieve them from the scatter object...I don't know what you mean by "show"...the command line echos the actual values if the arrays are of minimal size but you wouldn't want a 10,000 element vector scrolling across the command screen if that were the size of the figure.
X=hSc.XData;
etc., etc., ... Figured that would be obvious at that point.
Benjamin
Benjamin 2020년 8월 26일
Thanks. This was excatly what I was looking for.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by