fix bug in test introduced in 8541579d48

time-shift
Houtan 2017-12-08 15:04:46 +01:00
parent 8541579d48
commit 58536c53b3
1 changed files with 3 additions and 3 deletions

View File

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