Skip to content
Snippets Groups Projects
Commit c21bdd2d authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Initial commit.

parents
No related branches found
No related tags found
No related merge requests found
models/initial-condition-*.inc
models/terminal-condition-*.inc
models/m10/*
models/+m10/*
models/m10ss/*
models/+m10ss/*
models/m20/*
models/+m20/*
models/m20ss/*
models/+m20ss/*
models/m30/*
models/+m30/*
models/m30ss/*
models/+m30ss/*
*.ipynb
*.log
function write_steady_state(output, DynareModel, DynareOutput)
% Write the steady state into a file (endogenous and exogenous variables)
%
% INPUTS
% - output [char] row array, name of the generated file
% - DynareModel [struct] aka M_
% - DynareOutput [struct] aka oo_
fid = fopen(output, 'w');
fprintf(fid, '// File generated on %s.', char(datetime));
skipline(2, fid)
for i=1:DynareModel.orig_endo_nbr
fprintf(fid, '%s = %f;\n', DynareModel.endo_names{i}, DynareOutput.steady_state(i));
end
skipline(2, fid)
for i=1:DynareModel.exo_nbr
fprintf(fid, '%s = %f;\n', DynareModel.exo_names{i}, DynareOutput.exo_steady_state(i));
end
fclose(fid);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment