Filter löschen
Filter löschen

dynamic range of slider in MATLAB GUI

4 Ansichten (letzte 30 Tage)
as banga
as banga am 21 Jun. 2011
hey, if i want the slider range to be controlled by an input in the edit text, can i do that

Akzeptierte Antwort

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

Weitere Antworten (1)

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

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by