MATLAB: Yule walker Psd of .Wav file

psdpsd of wav fileyule walker psd

hi i m new to matlab.i m trying to obtain 4th order yule walker psd estimate of a wav file ,using pyulear command but it is generating error message every time.
[b1, f] = wavread('bcopy.wav');
>> [Pxx fs] = pyulear(b1,4)
??? Error using ==> aryule at 29
X must be a vector with length greater or equal to the model order.
Error in ==> arspectra at 75 [a,v] = feval(method,x,p);
Error in ==> pyulear at 65 [Pxx,freq,msg,units,Sxx,options] = arspectra(method,x,p,varargin{:});
plss help me with this.

Best Answer

You want to just input one column vector and not the matrix
b1 = b1(:,1);
[Pxx fs] = pyulear(b1,4);