필터 지우기
필터 지우기

Where does output data go?

조회 수: 6 (최근 30일)
Melissa
Melissa 2011년 6월 24일
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

답변 (2개)

Jan
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
Paulo Silva 2011년 6월 24일
I thought about that solution but you lose other important properties of the plot.

댓글을 달려면 로그인하십시오.


Paulo Silva
Paulo Silva 2011년 6월 24일
Maybe saving the figure with hgsave is what you want
hgsave(gcf,'myfig')
Load it later with hgload

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by