filename='data.xlsx';
obj = get(gca,'children');
x=get(obj, 'xdata');
y=get(obj, 'ydata');
x=x(:);
y=y(:);
M=[x y];
save(filename,'M','-ascii');
matlab提取figure图像中的数据data
最新推荐文章于 2024-10-04 21:25:44 发布
filename='data.xlsx';
obj = get(gca,'children');
x=get(obj, 'xdata');
y=get(obj, 'ydata');
x=x(:);
y=y(:);
M=[x y];
save(filename,'M','-ascii');