Basic Axes Handle question
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Ok so this is an extremely basic question.
If I write
h=gca
Matlab should create a new figure with axes and give me its handle. Exactly how its described in the helpfile.
But if I try to do this
set(h, 'title', 'testtitle')
I get an error saying
??? Error using ==> set Value must be a handle
I dont understand why MATLAB doesnt think its a handle, its obviously an axes handle.
0 Commenti
Risposta accettata
Fangjun Jiang
il 26 Ott 2011
h=gca;
TitleHandle=get(h,'title')
set(TitleHandle,'string','this is title text');
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Graphics Object Programming in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!