필터 지우기
필터 지우기

App Designer Slider changing value and Numerical Boxes Popping Up

조회 수: 16 (최근 30일)
Kathan Parikh
Kathan Parikh 2021년 4월 20일
답변: Aghamarsh Varanasi 2021년 4월 23일
Hi, I have tab on my GUI where i have a slider and the user slides the slider to a number between 0-5. And according to the number they have slid to, they would press a button and then numerical boxes would open for them to inut the values.
For example; if they slid the slider to 0 then no boxes would open to input the inof and if they slid to 3 then 3 numerical boxes would open.
How would i go by programming this with callbacks ?
Thanks

답변 (1개)

Aghamarsh Varanasi
Aghamarsh Varanasi 2021년 4월 23일
Hi,
You can use the 'Value Changed' callback of a slider in MATLAB appdesigner. For the numerical boxes, you could use a 'Numerical Edit Field' with the appropriate 'Limits'. You can toggle the property 'Visible' of 'Numerical Edit Field' to display the appropriate number of Edit Fields. For more information on the UI components in appdesigner, refer to this documentation link.
Hope this helps

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by