title: Error while evaluating uicontrol Callback in matlab
body: <p>I am displaying a slider in MATLAB but it is giving an error that</p>
  
  <pre><code>@(hObject,eventdata)rotate('slider1_Callback',hObject,eventdata,guidata(hObject))
  ??? Error while evaluating uicontrol Callback.
  </code></pre>
  
  <p>Here is code:</p>
  
  <pre><code>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)
  </code></pre>