export x and y data from a matlab plot into a matrix
Mostrar comentarios más antiguos
how do I extract the x y data from a matlab figure? Thank you.
Respuestas (3)
Honglei Chen
el 16 de Feb. de 2012
Editada: John Kelly
el 27 de Mayo de 2014
You need to access XData and YData property, for example:
h = plot(1:10);
get(h,'XData')
get(h,'YData')
Here is a handy tool to find out the handle graphics properties
1 comentario
Baba
el 16 de Feb. de 2012
Image Analyst
el 16 de Feb. de 2012
0 votos
If it just recently popped up, and you can run some code to get to it before focus switches to some other figure, then you can use gca or gcf for the handle.
Patrick Kalita
el 16 de Feb. de 2012
0 votos
Also, take a look at the answers to these similar questions:
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!