How to record sound and do spectral analysis in Matlab

How to record sound and do spectral analysis in Matlab ,

>> audiorecorder(8000,8,1);
>> a=audiorecorder(8000,8,1);
>> record(a,10);
>> b=getaudiodata(a);
>> play(b,8000);
Undefined function 'play' for input arguments of type 'double'.
 
>> sound(b);
>> plot(b);
>> e=fft(b);
>> plot(e);
>> plot(abs(e));
>> plot(abs(e));



Post a Comment

0 Comments