Clear Filters
Clear Filters

Regarding the GUI update to change the slider values.

25 views (last 30 days)
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

Accepted Answer

Voss
Voss on 24 Jul 2024 at 18:10
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
  6 Comments
Paramjit Yadav
Paramjit Yadav ongeveer 23 uur ago
Dear @Voss
Thank you so much for help. It worked. Cheers.
Kind regards

Sign in to comment.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!