Borrar filtros
Borrar filtros

Where does output data go?

6 visualizaciones (últimos 30 días)
Melissa
Melissa el 24 de Jun. de 2011
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

Respuestas (2)

Jan
Jan el 24 de Jun. de 2011
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 comentario
Paulo Silva
Paulo Silva el 24 de Jun. de 2011
I thought about that solution but you lose other important properties of the plot.

Iniciar sesión para comentar.


Paulo Silva
Paulo Silva el 24 de Jun. de 2011
Maybe saving the figure with hgsave is what you want
hgsave(gcf,'myfig')
Load it later with hgload

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by