From a0d0270679d7040843c185c33b3293f9b9432c31 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Tue, 16 Feb 2021 08:11:13 +0000 Subject: [PATCH 1/2] smoother2histval.m: suppress output [skip CI] --- matlab/smoother2histval.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/smoother2histval.m b/matlab/smoother2histval.m index f59c0ebf7..6fdbf8977 100644 --- a/matlab/smoother2histval.m +++ b/matlab/smoother2histval.m @@ -171,7 +171,7 @@ end % Handle all endogenous variables to be copied data = zeros(M_.orig_maximum_endo_lag, length(invars)); -k = M_.orig_maximum_endo_lag - M_.maximum_endo_lag + 1: M_.orig_maximum_lag +k = M_.orig_maximum_endo_lag - M_.maximum_endo_lag + 1: M_.orig_maximum_lag; for i = 1:length(invars) if isempty(strmatch(invars{i}, M_.endo_names, 'exact')) % Skip exogenous From 6b2555f0ad382ef31f451da41cd4e8ad9e0b404b Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Tue, 16 Feb 2021 09:00:11 +0000 Subject: [PATCH 2/2] smoother2histval: fix computation of data length --- matlab/smoother2histval.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/smoother2histval.m b/matlab/smoother2histval.m index 6fdbf8977..0ce98a01d 100644 --- a/matlab/smoother2histval.m +++ b/matlab/smoother2histval.m @@ -121,7 +121,7 @@ else end % Determine number of periods -n = size(smoothedvars.(tmp{1})); +n = length(smoothedvars.(tmp{1})); if n < M_.maximum_endo_lag error('Not enough observations to create initial conditions')