dynamic range of slider in MATLAB GUI

hey, if i want the slider range to be controlled by an input in the edit text, can i do that

 Accepted Answer

Yes, you can.
Range=get(handleEdit,'string');
set(handleSlider,'Max',str2num(Range));

More Answers (1)

Yes. Your callback function for the edit uicontrol can set() the properties of the slider.

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!