如何在MATLAB中重新安装Optimization Toolbox?

时间:2016-11-16 03:20:26

标签: matlab

我通过

调用Matlab内置函数fminunc
[b,fun,flag]    = fminunc(@cov,b0);

在调试模式下。 softwoare给我一个"Reference to non-existent field"错误

Reference to non-existent field 'DiffMinChange'.

Error in optimget>optimgetfast (line 102)
    value = options.(name);

Error in optimget (line 25)
    o = optimgetfast(options,name,default);

Error in fminunc (line 201)
options.DiffMinChange = optimget(options,'DiffMinChange',defaultopt,'fast');

Mathworks论坛中的人建议我重新对工具箱进行哈希处理 https://www.mathworks.com/matlabcentral/answers/312355-error-failure-in-initial-user-supplied-objective-function-evaluation-when-using-fminunc

rehash toolboxcache

但似乎行不通。另一种方法是重新安装优化工具箱,但我不知道如何做到这一点,尤其是如何以有效的方式做到这一点。有什么建议吗?

0 个答案:

没有答案