Azzera filtri
Azzera filtri

how to get the x axis label from figure handle?

29 visualizzazioni (ultimi 30 giorni)
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 Commento
Dubstep Dublin
Dubstep Dublin il 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?

Accedi per commentare.

Risposta accettata

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

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by