solvopt.m: prevent returning with inf

time-shift
Johannes Pfeifer 2021-01-22 14:20:23 +01:00
parent 371fdb227b
commit a89f21b53d
1 changed files with 3 additions and 0 deletions

View File

@ -678,6 +678,9 @@ while 1
end
if ksm || kc>=mxtc
exitflag=-3;
% don't return with NaN or Inf despite error code
x=x1;
f=f1;
if trx
x=x';
end