how to get the x axis label from figure handle?

28 次查看(过去 30 天)
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 个评论
Dubstep Dublin
Dubstep Dublin 2016-3-29
I have a related question.
How do I get the figure handle and subsequently get the x axes label in Matlab 2012?

请先登录,再进行评论。

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by