Prev: Using slider to updating audio signal being played..real post tia sal22
Next: Add a number tag to the end of a character text file
From: Walter Roberson on 9 Feb 2010 17:10 Rick T wrote: > function slider1_Callback(hObject, eventdata, handles) > > sliderValue = get(handles.slider1,'Value'); > %puts the slider value into the edit text component > set(handles.sliderValue_editText,'String', num2str(sliderValue)); > > freq=1; That line creates a variable named 'freq', not a variable named 'handles.freq'. > set(handles.freq,'Value',sliderValue); %sets freq when slider changes > %-------error it refers too above > > % Update handles structure > guidata(hObject, handles); |