MATLAB: Numeric index Slider GUI guinumeric indexslider 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 Best Answer 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) ) Related SolutionsMATLAB: How to update the slider using an edit text To make the slider update when the editbox is updated, put the update code in the editbox callbackfunction myEditBox_Callback(hObject,eventdata,handles)val = str2double(get(hObject,'String'));set(handles.slider1,'Value',val);guidata(hObject,handles)And then, in the slider's callback:function slider1_Callback(hObject,eventdata,handles)val = get(hObject,'Value');set(handles.myEditBox,'String',num2str(val));guidata(hObject,handles) MATLAB: Syncing both sliders and edit boxes set( handles.Slider1, 'Value', str2double(get(handles.Editbox1, 'String')) ) Related QuestionHelp with slider in matlab GUIAutorun sliderDynamic range of slider in MATLAB GUI
Best Answer