From 6c22d398e61797afcaecbdf022a35a3e0ecf2e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Wed, 24 Nov 2010 19:01:46 +0100 Subject: [PATCH] Perfect foresight simulation: clean up handling of warnings --- matlab/perfect_foresight_simulation.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matlab/perfect_foresight_simulation.m b/matlab/perfect_foresight_simulation.m index 45af9b0f5..82adbdc18 100644 --- a/matlab/perfect_foresight_simulation.m +++ b/matlab/perfect_foresight_simulation.m @@ -62,6 +62,7 @@ end initial_endo_simul = oo_.endo_simul; +warning_old_state = warning; warning off all if nargin<1 @@ -185,4 +186,4 @@ if ~stop oo_.endo_simul = initial_endo_simul; end -warning on all \ No newline at end of file +warning(warning_old_state);