antonywilliams
Civil/Environmental
- Mar 21, 2006
- 7
Another very basic question...
This should be very easy but I've been trying to get this to work all a day, and it's slowly driving me mad!
Basically I want a slider and an text box next to it that displays the value of the slider (1 - 6 steps).
I'm using this code for the callback part:
% --- Executes on slider movement.
function slider1_Callback(hObject, eventdata, handles)
slider_value = get(handles.slider1,'Value');
set (handles.text1, 'String', sliver_value);
I'm getting errors in the first line, whats wrong?
This should be very easy but I've been trying to get this to work all a day, and it's slowly driving me mad!
Basically I want a slider and an text box next to it that displays the value of the slider (1 - 6 steps).
I'm using this code for the callback part:
% --- Executes on slider movement.
function slider1_Callback(hObject, eventdata, handles)
slider_value = get(handles.slider1,'Value');
set (handles.text1, 'String', sliver_value);
I'm getting errors in the first line, whats wrong?