How to plot impulse response function in matlab?

As you see this image
, I couldn't plot impulse function
Even though I followed the procedure of plotting impulse function of AR(2) model as the
web site above, I couldn't. What is the problem and how can i make it like as the site above?
I have already installed Econometic tool box.

2 Comments

I don’t have the Econometrics Toolbox, but according to the documentation page you cited, the arima function needs more arguments to completely define the model:
Mdl = arima('AR',{0.5,-0.7},'Constant',0)
Add them in your code and see if it then works.
No , I couldn't replicate as the web site does. In fact, the 'Constant' term does not matter and it showed the same result as the photo above even though i added the 'Constant' term...

Sign in to comment.

Answers (0)

Categories

Asked:

on 4 May 2015

Edited:

on 5 May 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!