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

采纳的回答

Fangjun Jiang
Fangjun Jiang 2011-6-21
Yes, you can.
Range=get(handleEdit,'string');
set(handleSlider,'Max',str2num(Range));

更多回答(1 个)

Walter Roberson
Walter Roberson 2011-6-21
Yes. Your callback function for the edit uicontrol can set() the properties of the slider.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by