Dynare loop for - help


I am trying to make a simple loop over monetary policy parameters.

I replicated the Gertler & Karadi model.

Then I create a main Matlab file of the type:

param1 = 0.1;
param2 = 0.972;
for ii = 0.5:0.05:0.6
param3 = ii;
save (‘my_param.mat’, ‘param1’, ‘param2’, ‘param3’,);
clear all;
dynare my_file.mod noclearall;

Then in the .mod file, I declare the parameters and just after I add:
load my_param.mat;
before the command

It doesn’t even computethe steady state, what is wrong with my basic code?
How to do a basic for loop with Dynare?

If I make it work, how do I store all the results (parameters value and welfare calculated) to be able to compare them latter?

These should be helpfull: