App designer dynamic properties

17 ビュー (過去 30 日間)
MikeSv
MikeSv 2018 年 5 月 29 日
回答済み: Chris Portal 2018 年 5 月 31 日
Hi everyone.
I just got started with Gui programming using the App Designer and Iam wondering if it is possible to create dynamic uicontrols. In example if I want to plot on UIAxes1 I would use:
if true
plot(app.UIAxes...
end
But what if I want to create a new axis on in example a button click event and then use another button to plot something. How can I tell Matlab to plot on the newly creates axes?
I hope my question isn't too hard to follow...
Any help would be great.
Thanks in advance,
Mike

回答 (1 件)

Chris Portal
Chris Portal 2018 年 5 月 31 日
The answer in this other post describes how to do this in the general case if you’re creating multiple new components. If you are only needing to create 1 axes, then instead of managing your new components as a structure, it can just be the handle to your axes.

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by