为什么获取不了Fig文件中的曲线数据了?。
Afficher commentaires plus anciens
网上有多种获取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。
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur 图形对象的标识 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!