- #1
nikki92
- 40
- 0
Homework Statement
u(n) = .4s(n)+.7s(n) -.1s(n-2)+v(n) where v(n) is zero mean and has variance 0.003 and uncorrelated with s(n)
I want the autocorrelation is E[u(n-k)u(n)] I can solve it easily by hand which is the follow
so r(k) = 0.663 for k =0, 0.21 for k=1 , -0.04 for k=2 and the rest are zeros.
The Attempt at a Solution
In MATLAB how do I write u(n) in order to get the autocorrelation?