Azzera filtri
Azzera filtri

dynamic range of slider in MATLAB GUI

4 visualizzazioni (ultimi 30 giorni)
hey, if i want the slider range to be controlled by an input in the edit text, can i do that

Risposta accettata

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

Più risposte (1)

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

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by