Where does output data go?
7 次查看(过去 30 天)
显示 更早的评论
Good Afternoon, I was wondering if its possible to obtain a text file of given data made by a program. Say for instance I make a surface and just want the points created by that surface in a text or some kind of output file. Is it possible to obtain this or is it purely virtual? Thanks, Mel
0 个评论
回答(2 个)
Jan
2011-6-24
You can get the XData, YData and ZData from a plotted surface:
figure;
sphere;
C = get(gca, 'Children');
XData = get(C, 'XData');
YData = get(C, 'YData');
ZData = get(C, 'ZData');
And finally these values can be saved also.
1 个评论
Paulo Silva
2011-6-24
I thought about that solution but you lose other important properties of the plot.
Paulo Silva
2011-6-24
Maybe saving the figure with hgsave is what you want
hgsave(gcf,'myfig')
Load it later with hgload
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Map Display 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!