From f2f1c48baf05fc9e84252fa8c0362356e7559d16 Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Thu, 7 Sep 2023 17:52:31 +0200
Subject: [PATCH] compute_moments_varendo.m: cosmetic fixes

---
 matlab/compute_moments_varendo.m | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/matlab/compute_moments_varendo.m b/matlab/compute_moments_varendo.m
index dc869fdf82..8b9e8aae13 100644
--- a/matlab/compute_moments_varendo.m
+++ b/matlab/compute_moments_varendo.m
@@ -48,7 +48,7 @@ else
         return
     else
         if options_.one_sided_hp_filter || options_.hp_filter || options_.bandpass.indicator
-            fprintf(['Estimation::compute_moments_varendo: theoretical pruned moments incompatible with filtering. Skipping computations\n'])
+            fprintf('Estimation::compute_moments_varendo: theoretical pruned moments incompatible with filtering. Skipping computations\n')
         end        
     end
 end
@@ -163,9 +163,13 @@ if options_.order==1
                 lh = size(labels,2)+2;
                 dyn_latex_table(M_, options_, title, save_name_string, headers, labels, 100*temp, lh, 8, 2);
             end
+            if ~options_.noprint
+                skipline();
+            end
+        end
+        if ~options_.noprint
             skipline();
         end
-        skipline();
         if ~all(diag(M_.H)==0)
             [observable_name_requested_vars, varlist_pos] = intersect(var_list_, options_.varobs, 'stable');
             if ~isempty(observable_name_requested_vars)
-- 
GitLab