title: recording audio from a mic and plotting it
body: <p>I'm trying to learn a basic function of matlab and that is to record audio from mic and then plot it for a noise cancellation project. This is what I currently have:</p>
  
  <pre><code>function pushbutton1_Callback(hObject, eventdata, handles)
  fs=24;
  n=20000;
  handles.signal1 = audiorecorder(n,fs,'Double');
  msgbox('Recorded','Status');
  guidata(hObject,eventdata, handles);
  
  function pushbutton2_Callback(hObject, eventdata, handles)
  fs1=24;
  n=20000;
  handles.noise1= audiorecorder(n,fs1,'Double');
  msgbox('Recorded','Status');
  guidata(hObject, handles);
  </code></pre>
  
  <p>I get this error at line 6:</p>
  
  <blockquote>
    <p>not enough input arguments</p>
  </blockquote>