Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic Gui Problem

Status
Not open for further replies.

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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor