Problem with Autoregressive AR(3) Model. Take a look please
Afficher commentaires plus anciens
I need to plot an AR(3) process, with the following constraints.

I`m typing this
z=randn(1,1020);
z(1)=0;
phi = [-0.3, 0.9, -0.15];
x(1)=0;
for t=3:1023
x(t) = phi(1)*x(t-1) + phi(2)*x(t-2) + phi(3)*(t-3)+z(t);
end
plot(x); % code
Where is my mistake? Please help
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Conditional Mean Models dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!