Azzera filtri
Azzera filtri

Numeric index Slider GUI

2 visualizzazioni (ultimi 30 giorni)
Andrea
Andrea il 8 Ott 2013
Commentato: Andrea il 8 Ott 2013
Hi! I have 6 slider in my GUI and I want for each one a numeric index to show the actual numeric value moving the slider...is it possible? Thanks, Andrew

Risposta accettata

David Sanchez
David Sanchez il 8 Ott 2013
If "my_slider_k" is the tag of any of your sliders,
slider_k_value = get(handles.my_slider_k,'Value');
then, set this value to a text object:
set( handles.my_text_thing_handle,num2str(slider_k_value) )
  1 Commento
Andrea
Andrea il 8 Ott 2013
with a Edit Text or a Static Text?

Accedi per commentare.

Più risposte (1)

Andrea
Andrea il 8 Ott 2013
I have to use a Edit Text or a Static Text?

Categorie

Scopri di più su Characters and Strings in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by