Basic Axes Handle question
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Fangjun Jiang
2011 年 10 月 26 日
h=gca;
TitleHandle=get(h,'title')
set(TitleHandle,'string','this is title text');
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!