Clear Filters
Clear Filters

how to get the x axis label from figure handle?

29 views (last 30 days)
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 Comment
Dubstep Dublin
Dubstep Dublin on 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?

Sign in to comment.

Accepted Answer

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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!