diff --git a/matlab/write_steady_state.m b/matlab/write_steady_state.m index 9c0e1b77487dc384e6915d7b0d751467687a439b..840691539a5761e7a8a0cf96ad7d65dfb1704815 100644 --- a/matlab/write_steady_state.m +++ b/matlab/write_steady_state.m @@ -7,6 +7,8 @@ function write_steady_state(output, DynareModel, DynareOutput) % - DynareModel [struct] aka M_ % - DynareOutput [struct] aka oo_ +% Copyright (C) 2024 by Stéphane ADjemian + fid = fopen(output, 'w'); fprintf(fid, '// File generated on %s.', char(datetime)); skipline(2, fid) diff --git a/matlab/write_table_short.m b/matlab/write_table_short.m index 90e20082afe93d27a2a171a9e81e6423976b1d78..03c53cdfd754d69a61affa55e8b2a04a46b231b3 100644 --- a/matlab/write_table_short.m +++ b/matlab/write_table_short.m @@ -1,4 +1,5 @@ function write_table_short(datafile, texfilename) +% Copyright (C) 2024 by Stéphane Adjemian stack_solve_algo = [0, 1, 2, 3, 4, 5]; id = 1:length(stack_solve_algo); @@ -21,11 +22,11 @@ for algo = [0, 1] if ~isnan(MATLAB_computing(id(stack_solve_algo==algo), 1)) switch MATLAB_computing(id(stack_solve_algo==algo), 1) case -1 - T = strrep(T, sprintf('{a%u_mat}', algo), 'crash'); + T = strrep(T, sprintf('{a%u_mat}', algo), 'crash'); % code crash case -2 - T = strrep(T, sprintf('{a%u_mat}', algo), 'FAIL'); + T = strrep(T, sprintf('{a%u_mat}', algo), 'FAIL'); % algorithm did not converge case -3 - T = strrep(T, sprintf('{a%u_mat}', algo), 'CRASH'); + T = strrep(T, sprintf('{a%u_mat}', algo), 'CRASH'); % matlab crash otherwise T = strrep(T, sprintf('{a%u_mat}', algo), int2str(MATLAB_computing(id(stack_solve_algo==algo), 1))); end