how to get the x axis label from figure handle?

7 vues (au cours des 30 derniers jours)
Dubstep Dublin
Dubstep Dublin le 27 Mar 2016
Commenté : Dubstep Dublin le 29 Mar 2016
I have got the handle to the figure using s=hgload(myimagefile);
I would like to know the x axis label in the image.
Thanks
  1 commentaire
Dubstep Dublin
Dubstep Dublin le 29 Mar 2016
I have a related question.
How do I get the figure handle and subsequently get the x axes label in Matlab 2012?

Connectez-vous pour commenter.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 27 Mar 2016
a=findobj(h,'type','axe')
x=get(get(a,'xlabel'),'string')

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by