1、匿名函数提供了一种向要用作参数的函数传递附加参数的方法。考虑以下场景:
function result = ObjFunc(p, data) ...end
init = [5,3]data = [2,3,5,7];[x,fval] = fminunc(@ObjFunc, init)