put_in_sur_form: fix bug in cross equation restriction

time-shift
Houtan Bastani 2019-02-11 16:31:46 +01:00
parent ac171747cd
commit a3867a0b34
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ for i = 1:neqs
end
end
for j = length(to_remove):-1:1
Xtmp = Xtmp.remove(Xtmp.name{j});
Xtmp = Xtmp.remove(Xtmp.name{to_remove(j)});
end
if ~isempty(Xtmp)
Xmat = [Xmat Xtmp];