Undefinierte Funktion oder Variable 'optimoptions' in Matlab

Ich benutze dies aus der Dokumentation:

options = optimoptions('fminunc','GradObj','on','Hessian','on');

und aus irgendeinem Grund bekomme ich diesen Fehler:

Undefined function 'optimoptions' for input arguments of type 'char'.

Ich bin nicht sicher, wo das Problem liegt. Auch wenn ich optimoptions in Matlab eingebe, heißt es:

Undefined function or variable 'optimoptions'.

Vielen Dank

Antworten auf die Frage(1)

Ihre Antwort auf die Frage