From a5abdb3ce228a9eb5c54c4628403c32f1be72e4d Mon Sep 17 00:00:00 2001
From: Marco Ratto <marco.ratto@jrc.ec.europa.eu>
Date: Tue, 19 Jun 2012 15:32:42 +0200
Subject: [PATCH] Fixed use of old figure syntax to dyn_figure

---
 matlab/gsa/redform_screen.m | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/matlab/gsa/redform_screen.m b/matlab/gsa/redform_screen.m
index 0df2205462..d907c24440 100644
--- a/matlab/gsa/redform_screen.m
+++ b/matlab/gsa/redform_screen.m
@@ -99,7 +99,7 @@ for j=1:size(anamendo,1),
       end
     end
   end
-  if iplo<9 & iplo>0 & ifig,
+  if iplo<9 && iplo>0 && ifig,
     dyn_saveas(hh,[dirname,'/',M_.fname,'_', namendo,'_vs_shocks_',num2str(ifig)],options_);
     if ~options_.nodisplay
       close(hh);
@@ -117,7 +117,7 @@ for j=1:size(anamendo,1),
       if ~isempty(y0),
         if mod(iplo,9)==0,
           ifig=ifig+1;
-          figure('name',[namendo,' vs. lagged endogenous ',int2str(ifig)]),
+          hh=dyn_figure(options_,'name',[namendo,' vs. lagged endogenous ',int2str(ifig)]);
           iplo=0;
         end
         iplo=iplo+1;
@@ -145,7 +145,7 @@ for j=1:size(anamendo,1),
       end
     end
   end
-  if iplo<9 & iplo>0 & ifig,
+  if iplo<9 && iplo>0 && ifig,
     dyn_saveas(hh,[dirname,'/',M_.fname,'_', namendo,'_vs_lags_',num2str(ifig)],options_);      
   end
 end
-- 
GitLab