From f5def11a2341cbdb9136f2dd34d7344a8ea80e34 Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Thu, 9 Dec 2021 09:01:10 +0100
Subject: [PATCH] disp_th_moments.m: honor noprint

---
 matlab/disp_th_moments.m | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/matlab/disp_th_moments.m b/matlab/disp_th_moments.m
index 14531c06f1..78864ec56c 100644
--- a/matlab/disp_th_moments.m
+++ b/matlab/disp_th_moments.m
@@ -147,9 +147,11 @@ if size(stationary_vars, 1) > 0
 end
 
 if isempty(i1)
-    skipline()
-    disp('All endogenous are constant or non stationary, not displaying correlations and auto-correlations')
-    skipline()
+    if ~options_.noprint
+        skipline()
+        disp('All endogenous are constant or non stationary, not displaying correlations and auto-correlations')
+        skipline()
+    end
     return
 end
 
-- 
GitLab