필터 지우기
필터 지우기

accessible property for an instance

조회 수: 1 (최근 30일)
Elia
Elia 2013년 12월 19일
댓글: Azzi Abdelmalek 2013년 12월 19일
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 ?

채택된 답변

Azzi Abdelmalek
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
Elia
Elia 2013년 12월 19일
thank you...
when i have more than one axes in the figure , howe can i refer the xlabel for each axes ?
Azzi Abdelmalek
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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by