Filter löschen
Filter löschen

accessible property for an instance

1 Ansicht (letzte 30 Tage)
Elia
Elia am 19 Dez. 2013
Kommentiert: Azzi Abdelmalek am 19 Dez. 2013
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 ?

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 19 Dez. 2013
Bearbeitet: Azzi Abdelmalek am 19 Dez. 2013
Why not
xlabel('time')
And in your code there is a mistake, it's xlabel not xlable
set(get(gca,'xlabel'),'string','time')
  2 Kommentare
Elia
Elia am 19 Dez. 2013
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 am 19 Dez. 2013
Like you did it without the mistake xlable. If axe1 is your axe
set(get(axe1,'xlabel'),'string','time')

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by