为什么获取不了Fig文件中的曲线数据了?。
Show older comments
网上有多种获取fig文件中的曲线数据的方法,如
obj = get(gca,'children');
x=get(obj(1), 'xdata');
y=get(obj(1), 'ydata');
obj=findall(gca,'type','line');
x=get(obj(1), 'xdata');
y=get(obj(1), 'ydata');
但是我保存的fig文件缺获取不了其中的xdata和ydata数据,这是为什么了?
每次gcf,都将创建一个新的figure;
问题文件已上传。请求大家帮助,谢谢大家!
我的Matlab版本是2012b。
Accepted Answer
More Answers (0)
Categories
Find more on 打印和保存 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!