在Matlab 2012a win7下, 使用Matlab从麦克风中获取音频数据.
原文出自 matlabworks
% Record your voice for 5 seconds. recObj = audiorecorder; disp('Start speaking.') recordblocking(recObj, 5); %保存5秒 disp('End of Recording.'); % Play back the recording. play(recObj); % Store data in double-precision array. myRecording = getaudiodata(recObj); % Plot the waveform. plot(myRecording);