From 6e4ccac19c88e6cf24aab3ced091b398017afdfc Mon Sep 17 00:00:00 2001
From: Marco Ratto <marco.ratto@ec.europa.eu>
Date: Thu, 22 Feb 2024 09:26:54 +0100
Subject: [PATCH] initialize undocumented options that would otherwise lead to
 a crash in occbin.shock_decomposition (unrecognized field name)

---
 matlab/+occbin/set_default_options.m | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/matlab/+occbin/set_default_options.m b/matlab/+occbin/set_default_options.m
index f15f9eb365..9fe7078711 100644
--- a/matlab/+occbin/set_default_options.m
+++ b/matlab/+occbin/set_default_options.m
@@ -174,6 +174,9 @@ if ismember(flag,{'shock_decomp','all'})
     options_occbin_.shock_decomp.shocks_only=false;
     options_occbin_.shock_decomp.total_effect=false;
     options_occbin_.shock_decomp.conditional_only=true;
+    options_occbin_.shock_decomp.exclude_shock_from_weights='';
+    options_occbin_.shock_decomp.variable_for_computing_weights='';
+    options_occbin_.shock_decomp.variable_for_computing_weights_lower_bound='';
     options_occbin_.shock_decomp.TINIT = dates(); % date to initialize states for shock decomp
 %     options_occbin_.shock_decomp.use_shock_groups=options_.plot_shock_decomp.use_shock_groups;
 end
-- 
GitLab