From 68c9c3e9ab98342cd615fa691fd407e4ca04f441 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Fri, 5 Jun 2015 20:49:43 +0200 Subject: [PATCH] Account for ML in map_ident_.m In this case, pdraws is empty. Closes #676 --- matlab/gsa/map_ident_.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/gsa/map_ident_.m b/matlab/gsa/map_ident_.m index 867dfcfd6..61db1cafd 100644 --- a/matlab/gsa/map_ident_.m +++ b/matlab/gsa/map_ident_.m @@ -64,7 +64,7 @@ if opt_gsa.load_ident_files==0, if opt_gsa.morris==2, pdraws = dynare_identification(options_.options_ident,[lpmatx lpmat(istable,:)]); % [pdraws, TAU, GAM] = dynare_identification(options_.options_ident,[lpmatx lpmat(istable,:)]); - if max(max(abs(pdraws-[lpmatx lpmat(istable,:)])))==0, + if ~isempty(pdraws) && max(max(abs(pdraws-[lpmatx lpmat(istable,:)])))==0, disp(['Sample check OK ', num2str(max(max(abs(pdraws-[lpmatx lpmat(istable,:)]))))]), clear pdraws; end