From 58536c53b3e812d8b737f4c318a1148b94f65012 Mon Sep 17 00:00:00 2001 From: Houtan Date: Fri, 8 Dec 2017 15:04:46 +0100 Subject: [PATCH] fix bug in test introduced in 8541579d482feb64fcf676875096c9058382418e --- tests/ECB/pooled_fgls/run_simulation_test.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ECB/pooled_fgls/run_simulation_test.m b/tests/ECB/pooled_fgls/run_simulation_test.m index e3a27459f..dbbe3467f 100644 --- a/tests/ECB/pooled_fgls/run_simulation_test.m +++ b/tests/ECB/pooled_fgls/run_simulation_test.m @@ -21,9 +21,9 @@ for i=1:NSIMS simdata = simdata(simdata.dates(5001:6000)); names=regexp(simdata.name, 'res\w*'); idxs = []; - for i=1:length(names) - if isempty(names{i}) - idxs = [idxs i]; + for j=1:length(names) + if isempty(names{j}) + idxs = [idxs j]; end end simdata = simdata{idxs};