How to extract data points from a .fig scatter plot?
31 次查看(过去 30 天)
显示 更早的评论
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,
0 个评论
采纳的回答
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
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!