Control value range in matlab UI spinner

조회 수: 5 (최근 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에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by