Attempt to reference field of non-structure array

Dear All,

i am quite new to this program so I apologise if i ask a trivial question. I tried to find an explanation for the problem i am facing but without luck. As per attached code, when i try to run I obtain the following mistake. I am totally clueless on its reason. Did i do some mistake on the computation of hte steady state ratio? Are the parameters wrong?

Thanks for any help,

Attempt to reference field of non-structure array.
Error in list_of_parameters_calibrated_as_NaN (line 32)
idx = find(isnan(M_.params));
Error in test_for_deep_parameters_calibration (line 32)
plist = list_of_parameters_calibrated_as_NaN(M_);
Error in steady (line 33)
Error in macro_project_hope (line 260)
Error in dynare (line 180)
evalin(‘base’,fname) ;

wrong.mod (3.35 KB)

Do not put

in your mod-file. It will erase important variables created by Dynare. Dynare automatically does a clear all at the beginning