dynamic range of slider in MATLAB GUI
4 次查看(过去 30 天)
显示 更早的评论
hey, if i want the slider range to be controlled by an input in the edit text, can i do that
0 个评论
采纳的回答
Fangjun Jiang
2011-6-21
Yes, you can.
Range=get(handleEdit,'string');
set(handleSlider,'Max',str2num(Range));
0 个评论
更多回答(1 个)
Walter Roberson
2011-6-21
Yes. Your callback function for the edit uicontrol can set() the properties of the slider.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!