Undefined function or variable 'optimoptions' in Matlab

后端 未结 1 1809
Happy的楠姐
Happy的楠姐 2021-01-24 07:36

I use this from the documentation:

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

and for some reason I get this er

1条回答
  •  星月不相逢
    2021-01-24 08:21

    The function optimoptions was newly introduced in MATLAB R2013a. It might be the case that you are using an older version of MATLAB. If so use optimset instead of optimoptions.

    0 讨论(0)
提交回复
热议问题