Control value range in matlab UI spinner

4 次查看(过去 30 天)
Tino
Tino 2019-7-17
评论: LO 2020-7-3
Hello
I have a function that enables you to add numbers through spinner on the app designer
how do I control the value range from ( 0.1 to 1)
find the function below
function EnumSpinnerValueChanged(app, event)
value = app.EnumSpinner.Value;
end
end
Thanks in advance
Tino
  1 个评论
Adam
Adam 2019-7-17
It should be in the setup of the spinner ini the design view where you will have min and max options. I can't remember off-hand, I don't use app designer, but when you add a component you get a bunch of options for it appearing somewhere over to the bottom right (I think) of the design view to customise the initial options.

请先登录,再进行评论。

回答(1 个)

Vimal Rathod
Vimal Rathod 2019-7-30
You can control the range of a UI Spinner by setting the Limits property to the desired range of value.
Refer to the properties of UI Spinner for more information:
  1 个评论
LO
LO 2020-7-3
how can one set the limits based on edits taken from a text box entry ?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 App Building 的更多信息

标签

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by