How to convert the parameter in the steadystate.m into the mod

Hi, everyone,
In our model, there are some parameters which are computed from the steady-state value of endogenous variables. In our steadystate.m, we obtain the equation in which these parameters are functions of endogenous variables and compute the values. But how can we convert these value into the mod file?

Take examples/NK_baseline_steadystate.m · master · Dynare / dynare · GitLab

There we have

%% end own model equations

params=NaN(NumberOfParameters,1);
for iter = 1:length(M_.params) %update parameters set in the file
  eval([ 'params(' num2str(iter) ') = ' M_.param_names{iter} ';' ])
end

It takes the parameter values defined in the steady state file and passes them back to the mod-file. For example, if you set betta=0.99 in the steady state file, the parameter beta will have the value 0.99 from there on.

You can do the same within a steady_state_model-block. See DSGE_mod/RBC_baseline.mod at master · JohannesPfeifer/DSGE_mod · GitHub

Thanks a lot, Professor!