dynamic range of slider in MATLAB GUI
4 views (last 30 days)
Show older comments
hey, if i want the slider range to be controlled by an input in the edit text, can i do that
0 Comments
Accepted Answer
Fangjun Jiang
on 21 Jun 2011
Yes, you can.
Range=get(handleEdit,'string');
set(handleSlider,'Max',str2num(Range));
0 Comments
More Answers (1)
Walter Roberson
on 21 Jun 2011
Yes. Your callback function for the edit uicontrol can set() the properties of the slider.
0 Comments
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!