That is strongly discouraged. But in any case, without the codes it is impossible to tell what is going on. My guess is that you are using code suitable only for Dynare 4.5
temp=load('par.mat'); % load mat file created in console
for jj=1:length(M_.param_names)
set_param_value(M_.param_names{jj},temp.(M_.param_names{jj}));
end;
However, not all parameters you are trying to set are contained in par.mat.
That was a mistake that should have been avoided… sorry for that. But I don’t think it caused the error. Now, I checked the parameters at the end of par.m to make sure all the parameters are saved in par.mat, and rewrite the codes into