Undefined function or variable error

Dear All,

I am getting the following error after running a simulation and I cannot work out what the problem is:

Undefined function or variable ‘z_epsZ’.

Error in cycle_irf (line 971)
plot((z_epsZ),‘b’,‘Linewidth’,2);axis tight;grid on; title(‘Tech. shock’);

Error in dynare (line 180)
evalin(‘base’,fname) ;

Error in run (line 56)
dynare cycle_irf; load options

I would greatly appreciate some help on where this is coming from and how to fix it. Please run the run.m file in the attached folder to see the error. Many thanks.

Cycle_irf_simulation_forum.zip (2.3 MB)

You are having indeterminacy for one iteration of the loop. But as you are using noprint, you are not getting an error, but rather the IRFs are simply missing.