ZLB deterministic setting

I need some advise. I am implementing a negative deterministic shock to the interest rate in order to do some ZLB analysis. Despite the model converges and the rank condition is satisfied, I get this error message.

??? Error using ==> assignin
ASSIGNIN cannot assign to variables with the same name as a MATLAB keyword

Error in ==> dyn2vec at 49

Error in ==> simul at 100

Then, when I look at the simulated series for the nominal interest rate, it turns out that negative values remain so and are not turned to zero. Can someone help me?

thank you in advance!
baseline_code.mod (7.09 KB)


Just rename several variables like pi and i. They have another meaning for Matlab.