MATLAB读取fig文件中的数据(得到x、y数据)

https://zhidao.baidu.com/question/256057475.html

注意大小写!!

假设你的图片是figure1,使用下面的语句即可得到图上点的坐标

h=open('A.fig');
a=get(h);
b=get(a.Children);
c=get(b.Children);
xx=c.XData;
yy=c.YData;

 

猜你喜欢

转载自blog.csdn.net/slp1009_/article/details/82290356