我在 MATLAB 中显示一个滑块,但它给出了一个错误
@(hObject,eventdata)rotate('slider1_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback.
这是代码:
function slider1_Callback(hObject, eventdata, handles)
% hObject handle to slider1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'Value') returns position of slider
% get(hObject,'Min') and get(hObject,'Max') to determine range of slider
a=get(handles.slider1,'Min',1,'Max',10,'Value',1);
%// error line:
function slider1_Callback(hObject, eventdata, handles)