title: how to quit matlab gui
body: <p>I have this callback in my matlab gui that is executed by the menu->Programm->quit.</p>
  
  <p>However the handles is empty.</p>
  
  <pre><code>function menuProgramQuit_Callback(hObject, eventdata, handles)
  % hObject    handle to menuProgramQuit (see GCBO)
  % eventdata  reserved - to be defined in a future version of MATLAB
  % handles    structure with handles and user data (see GUIDATA)
  close(handles.figure1);
  </code></pre>
  
  <p>Therefore I would like to know how to quit a matlab gui, or why in my code the handles struct is empty?</p>