Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个功能
function [result] = mleGARCH1(r,a0,a1,b1,mu)
除了将作为输入的 r 之外,我想最小化所有变量。
我应该如何格式化fminsearch函数来获得它?
fminsearch
尝试匿名函数:
[xmin result] = fminsearch(@(x) mleGARCH1(r,x(1),x(2),x(3),x(4)), [ initial values ]);