Member of the modeling and prediction class.
a = arcov(x, n)
[a, e] = arcov(x, n)
Uses the covariance method to estimate autoregressive (AR) model parameters.
| Name | Description |
| x | Specifies the input signal. x is a vector. |
| n | Specifies the order of the AR model. n is a positive integer. |
| Name | Description |
| a | Returns the estimate of AR model parameters. a is a vector. |
| e | Returns the variance estimate of the white noise input to the AR model. e is a real number. |
t = 1:20;
x = t+rand(1, length(t));
[a, e] = arcov(x, 1)
y = stepz(sqrt(e), a, length(t));
plot(t, x, t, y)