From 078309ac3732b126d5052b18caa70fb5f039c011 Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Mon, 5 Dec 2022 14:52:03 +0100
Subject: [PATCH] prior_posterior_statistics.m: fix logical condition

(cherry picked from commit e7ca989b215645c77e9e00a8c1d5482b0e573501)
---
 matlab/prior_posterior_statistics.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/prior_posterior_statistics.m b/matlab/prior_posterior_statistics.m
index 15355631e5..ebae473d55 100644
--- a/matlab/prior_posterior_statistics.m
+++ b/matlab/prior_posterior_statistics.m
@@ -139,7 +139,7 @@ irun = ones(n_variables_to_fill,1);
 ifil = zeros(n_variables_to_fill,1);
 
 run_smoother = 0;
-if options_.smoother || options_.forecast || options_.filter_step_ahead || options_.smoothed_state_uncertainty
+if options_.smoother || options_.forecast || ~isempty(options_.filter_step_ahead) || options_.smoothed_state_uncertainty
     run_smoother = 1;
     if options_.loglinear
         oo_.Smoother.loglinear = true;
-- 
GitLab