Getting wiener filter coefficients in Matlab

6.5k Views Asked by At

I need to find two coefficients (w1,w2) for a wiener predictor filter of the signal
x(n)=0.65x(n-1)-0.7x(n-2)+v(n) where:
x(-1)=x(-2)=0 and v(n) = white noise
I have already gotten points to evaluate like this:
for i=1:2000 vn(i) = randn(1,1)-0.5; %create the noise; x(i) = 0; end for i=3:2000 x(i) = 0.65*x(i-1)-0.7*x(i-2)+vn(i); %first 2000 points of the signal end Now I'm a little lost, I don't know how to get this coefficients to create a wiener predictor of type y(n) = w1*x(n-1) + w2*x(n-2)