From f83d7db9073786bc84c0e388c725675737b24abb Mon Sep 17 00:00:00 2001 From: Marco Ratto Date: Fri, 21 Jan 2011 11:28:28 +0100 Subject: [PATCH] Fix of .mat extension with save for octave. --- matlab/dynare_sensitivity.m | 6 +++--- matlab/mr_gstep.m | 4 ++-- matlab/mr_hessian.m | 6 +++--- matlab/newrat.m | 10 +++++----- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/matlab/dynare_sensitivity.m b/matlab/dynare_sensitivity.m index 77adb5531..cf5a5d7a9 100644 --- a/matlab/dynare_sensitivity.m +++ b/matlab/dynare_sensitivity.m @@ -375,19 +375,19 @@ if options_gsa.glue, % Info.order_var=dr_.order_var; % Out=Out1; Info.TypeofSample='post'; - save([OutputDirectoryName,'/',fname_,'_glue_post'], 'Out', 'Sam', 'Lik', 'Obs', 'Rem','Info', 'Exo') + save([OutputDirectoryName,'/',fname_,'_glue_post.mat'], 'Out', 'Sam', 'Lik', 'Obs', 'Rem','Info', 'Exo') %save([fname_,'_post_glue_smooth'], 'Out', 'Sam', 'Lik', 'Obs', 'Rem','Info') else if options_gsa.pprior Info.TypeofSample='prior'; - save([OutputDirectoryName,'/',fname_,'_glue_prior'], 'Out', 'Sam', 'Lik', 'Obs', 'Rem','Info', 'Exo') + save([OutputDirectoryName,'/',fname_,'_glue_prior.mat'], 'Out', 'Sam', 'Lik', 'Obs', 'Rem','Info', 'Exo') % save([OutputDirectoryName,'/',fname_,'_prior_glue'], 'Out', 'Sam', 'Lik', 'Obs', 'Rem') % Out=Out1; % save([OutputDirectoryName,'/',fname_,'_prior_glue_smooth'], 'Out', 'Sam', 'Lik', 'Obs', 'Rem') else Info.TypeofSample='mc'; - save([OutputDirectoryName,'/',fname_,'_glue_mc'], 'Out', 'Sam', 'Lik', 'Obs', 'Rem','Info', 'Exo') + save([OutputDirectoryName,'/',fname_,'_glue_mc.mat'], 'Out', 'Sam', 'Lik', 'Obs', 'Rem','Info', 'Exo') % save([OutputDirectoryName,'/',fname_,'_mc_glue'], 'Out', 'Sam', 'Lik', 'Obs', 'Rem') % Out=Out1; % save([OutputDirectoryName,'/',fname_,'_mc_glue_smooth'], 'Out', 'Sam', 'Lik', 'Obs', 'Rem') diff --git a/matlab/mr_gstep.m b/matlab/mr_gstep.m index ce6448fbe..291b3403b 100644 --- a/matlab/mr_gstep.m +++ b/matlab/mr_gstep.m @@ -144,10 +144,10 @@ while igtol & check==0 & jit1.e-12, try - save m1 x fval0 nig -append + save m1.mat x fval0 nig -append catch - save m1 x fval0 nig + save m1.mat x fval0 nig end [dum, gg, htol0, igg, hhg]=mr_hessian(0,xparam1,func_hh,flagit,htol,varargin{:}); if htol0>htol, %ftol, @@ -237,11 +237,11 @@ while norm(gg)>gtol & check==0 & jitftol0, disp(' ') disp('Numerical noise in the likelihood')