From b727aa1b92330c0ffe92c7e2c7d8a220dc204fb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Mon, 4 Jun 2012 16:13:03 +0200 Subject: [PATCH] Simplify sim1_purely_forward --- matlab/sim1_purely_forward.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/matlab/sim1_purely_forward.m b/matlab/sim1_purely_forward.m index 89b4e6500..17b3f3b9c 100644 --- a/matlab/sim1_purely_forward.m +++ b/matlab/sim1_purely_forward.m @@ -33,9 +33,6 @@ function sim1_purely_forward yf = oo_.endo_simul(:,it+1); % Values at next period, also used as guess value for current period yf1 = yf(iyf); - f = @(x) model_dynamic([x; yf1 ], oo_.exo_simul, M_.params, ... - oo_.steady_state, it); - - oo_.endo_simul(:,it) = solve1(f, yf, 1:M_.endo_nbr, 1:M_.endo_nbr, 1, 1); + oo_.endo_simul(:,it) = solve1(model_dynamic, [yf; yf1], 1:M_.endo_nbr, 1:M_.endo_nbr, 1, 1, oo_.exo_simul, M_.params, oo_.steady_state, it)(1:M_.endo_nbr); end \ No newline at end of file