Info

この質問は閉じられています。 編集または回答するには再度開いてください。

In Appdesigner , how to know the attributes of certain UI

1 回表示 (過去 30 日間)
Alaa Hesham
Alaa Hesham 2019 年 1 月 7 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
For instance , For a discerte knob , how to refer to its current selected items ?
is it
discreteKnob.Value ?
or
discreteKnob.SelectedItems.Text
or
discreteKnob.States
how for brand new ui figure to know its associated attributes?

回答 (1 件)

Vishal Chaudhary
Vishal Chaudhary 2019 年 1 月 10 日
To get all the current attributes of UI, "get" can be used.
For example:
ax = uiaxes;
get(ax)
ax.XLim=[0 10];
This will show all the current attributes and then they can be accessed and updated as in the last line.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by