Syncing both sliders and edit boxes

6 views (last 30 days)
I have a gui with sliders & edit boxes in it.If i change slider position value is displyed on edit box,but how do we change slider position if value is changed in edit box.

Accepted Answer

Walter Roberson
Walter Roberson on 2 Jul 2012
set( handles.Slider1, 'Value', str2double(get(handles.Editbox1, 'String')) )

More Answers (0)


Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!