export x and y data from a matlab plot into a matrix
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how do I extract the x y data from a matlab figure? Thank you.
0 commentaires
Réponses (3)
Honglei Chen
le 16 Fév 2012
Modifié(e) : John Kelly
le 27 Mai 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
Image Analyst
le 16 Fév 2012
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.
0 commentaires
Patrick Kalita
le 16 Fév 2012
Also, take a look at the answers to these similar questions:
0 commentaires
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!