As part of a project I need to use autocorrelation method of estimating model paramters of an autoregressive process on MATLAB.
Can anyone tell me the simplest way to generate an AR(2) process on MATLAB so that I can estimate its model parameters $\hat{a}_{p}(k)$ and $\hat{b}_{0}$?
The difference equation for the process is given below:
$$x(n) = -0.9x(n-1) + w(n)$$