MATLAB compatibility fix: skip mode_compute=3 test under R2009b

In this version, fminunc fails due to Inf value.
time-shift
Sébastien Villemot 2020-01-13 16:27:47 +01:00
parent 1912f67778
commit bde2f1977c
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
@#include "fs2000.common.inc"
if exist('fminunc','file')
% Skip the test under R2009b, because fminunc fails due to Inf value.
% It remains to be determined in which version it started to work.
if exist('fminunc','file') && (isoctave || ~matlab_ver_less_than('7.10'))
estimation(mode_compute=3,order=1, datafile='../fs2000/fsdat_simul', nobs=192, mh_replic=0);
end