为什么获取不了Fig文件中的曲线数据了?。
古いコメントを表示
网上有多种获取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。
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で 打印和保存 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!