When running the code for solving Kiyotaki and Moore (1997) written by Eric Sims in Dynare, I encountered the following error:
“The ‘end’ operator must be used within an array indexing expression.”
This seems to be triggered by lines 40 and 41 in the execution script:
MATLAB
k_irf = [0;k_ed(1:end-1)];
kp_irf = [0;kp_ed(1:end-1)];
Specifically, I cannot find the variables k_ed and kp_ed in the generated variable list. Could these variables be generated after solving the model, or might they be typos? If it’s the latter, which two variables do you think might be intended here? Thanks
my matlab version is 2024b and dynare version is 6.3