
      r = audiorecorder(44100, 16, 2);

	  % all you need: 
      % r = audiorecorder(44100, 16, 2);
	  % record(r);     % speak into microphone...
      		%	 pause(r);
      % p = play(r);   % listen
      		% resume(r);     % speak again
      % stop(r);
      		% p = play(r);   % listen to complete recording


	 % To obtain a tall by 2 matrix C
     % C = getaudiodata(r,44100);

	 % Convert the matrix back to playable file
	 % t = audioplayer(C,44100);
