From fe41b64c84ef1792ce7fbaeef3e70ff59fa67607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Lupi=29?= Date: Wed, 8 Jul 2015 16:05:38 +0200 Subject: [PATCH] Save on disk the data produced by mode_check. --- matlab/mode_check.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/matlab/mode_check.m b/matlab/mode_check.m index 39b40c4da..9eb3488ae 100644 --- a/matlab/mode_check.m +++ b/matlab/mode_check.m @@ -89,6 +89,8 @@ if isinf(ll), DynareOptions.mode_check.symmetric_plots = 0; end +mcheck = struct('cross',struct(),'emode',struct()); + for plt = 1:nbplt, if TeX NAMES = []; @@ -149,6 +151,8 @@ for plt = 1:nbplt, y(i,2) = (y(i,1)+lnprior-dy); end end + mcheck.cross = setfield(mcheck.cross, name, [transpose(z), -y]); + mcheck.emode = setfield(mcheck.emode, name, x(kk)); fighandle=plot(z,-y); hold on yl=get(gca,'ylim'); @@ -194,4 +198,6 @@ for plt = 1:nbplt, fprintf(fidTeX,'\\end{figure}\n'); fprintf(fidTeX,' \n'); end -end \ No newline at end of file +end + +save('check_plot_data','mcheck'); \ No newline at end of file