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};