Regarding the GUI update to change the slider values.
3 次查看(过去 30 天)
显示 更早的评论
Dear Friends Hello,
I have a querry I request to please help.
I have created a GUI where the values is gratting is selected from the 'select_gratting' as shownin attached figure. I want to change the slider limits based on gratting selected. For example currently it shows - 30 to 550 for 1200 gratting values, but when 2400 gratting selected I want slider limit to change and show 30 to 250 without closing the GUI.
I request to please help, how can I do this.
Thanking you,
Kind regards
0 个评论
采纳的回答
Voss
2024-7-24
Assuming app.dropdown is your dropdown component and app.slider is your slider component:
if app.dropdown.ValueIndex == 1
app.slider.Limits = [30 550];
else
app.slider.Limits = [30 250];
end
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!