9.doc

4
EXPERIMENT-9 AIM: To estimate power spectrum using parametric methods(yule walker and burg) SOFTWARE REQUIRED: MATLAB 7.0.1 PROGRAM: BURG METHOD FOR AR MODEL randn('state',1); x = randn(100,1); y = filter(1,[1 1/2 1/3 1/4 1/5],x); % Fourth order AR filter h=spectrum.burg(4); psd(h,y); % Uses default FFT length of 256 plot([0:255]/256, p); title('Burg Method Spectral Density Estimate'); xlabel('Normalized frequency'); ylabel('Power/frequency'); OUTPUT WAVEFORM: 33

Transcript of 9.doc

PAGE 35

EXPERIMENT-9AIM: To estimate power spectrum using parametric methods(yule walker and burg)SOFTWARE REQUIRED: MATLAB 7.0.1

PROGRAM:

BURG METHOD FOR AR MODELrandn('state',1); x = randn(100,1); y = filter(1,[1 1/2 1/3 1/4 1/5],x); % Fourth order AR filter h=spectrum.burg(4); psd(h,y); % Uses default FFT length of 256 plot([0:255]/256, p); title('Burg Method Spectral Density Estimate'); xlabel('Normalized frequency'); ylabel('Power/frequency');OUTPUT WAVEFORM:

YULE WALKER METHOD

randn('state',1);

x = filter(1,a,randn(256,1)); % AR system output

pyulear(x,4) % Fourth-order estimateOUTPUT WAVEFORM:

RESULT: The power spectrum is estimated by using parametric methods (yule walker and burg)