How to get the value of 'x' from a figure?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I'm trying to get the value of the x axis from a figure. I am currently using gtext, is there another way?
Cheers
0 commentaires
Réponses (3)
Azzi Abdelmalek
le 12 Fév 2013
Click on your plot then type in command windows
x=get(gco,'xdata')
0 commentaires
Voir également
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!