Originally Posted by

**sensitive** Thank you I get it now...Previously I didnt understand the meaning of transient.

Just one quick question what is a rectangular smoothing filter?

I am asked to apply rectangular smoothing filters to the spectrum obtained in previous query. Is there a function in Matlab that I have to know to do this?

Also just a quick ques on my code. It is a simple plotting code. Iam trying to plot the function with respective w values

sigma = 1;

w = 1:1:5

F=(sigma^2)./2*pi*((2+0.5^2)-cos(w)+cos(2*w))

plot(w,F,'.-')

xlabel 'w'

ylabel 'F(w)'

title 'Power Spectrum of AR(2) model'

The plot I obtained for the code is ploting straight lines from one point to another. How do I plot a curve or is there something wrong on how i define my function that should enable me to plot a curve.

Thank you..