accessible property for an instance
3 次查看(过去 30 天)
显示 更早的评论
i want to give a name to the x-axes ,i wrote this command in the openingfcn
set(get(axes1,'XLable'), 'String','time');
but is does not work ,when i run it i become on the command window
The name 'XLable' is not an accessible property for an instance of class 'axes'.
where is the Problem ?
0 个评论
采纳的回答
Azzi Abdelmalek
2013-12-19
编辑:Azzi Abdelmalek
2013-12-19
Why not
xlabel('time')
And in your code there is a mistake, it's xlabel not xlable
set(get(gca,'xlabel'),'string','time')
2 个评论
Azzi Abdelmalek
2013-12-19
Like you did it without the mistake xlable. If axe1 is your axe
set(get(axe1,'xlabel'),'string','time')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!