From 6b4a9b300c6b70e73537de19be61c559ef246ce6 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Thu, 7 Feb 2019 15:21:11 +0100
Subject: [PATCH] gui: initialize M_.det_shocks to []

---
 matlab/+gui/+perfect_foresight/run.m | 1 +
 1 file changed, 1 insertion(+)

diff --git a/matlab/+gui/+perfect_foresight/run.m b/matlab/+gui/+perfect_foresight/run.m
index eef3ff73f..92d07f7b1 100644
--- a/matlab/+gui/+perfect_foresight/run.m
+++ b/matlab/+gui/+perfect_foresight/run.m
@@ -62,6 +62,7 @@ end
 
 %% ENDVAL instructions
 % initialize exogenous shocks to zero and compute final ss unless there is a permanent shock
+M_.det_shocks = [];
 ys0_= oo_.steady_state;
 ex0_ = oo_.exo_steady_state;
 if jm.permanentshockexist == 0
-- 
GitLab