Looping in deterministic simulation

Hello,

I am writing to ask how the code Prof. Pfeifer posted here Loop over parameters
for looping over a parameter value in a stochastic simulation, e.g

rhos = 0.8:0.05:1.05; first_time = 1; for i=1:length(rhos) if first_time set_param_value('rho',rhos(i)); dynare your_mod_file_here noclearall; first_time = 0; else set_param_value('rho',rhos(i)); info = stoch_simul(var_list_); if info; disp('Computation fails for rho = ' num2str(rho)]); end; end end

would change when using a deterministic simulation instead.

Thanks in advance for your time.

In this case I would need more info and the files