www.gusucode.com > 使用Matlab在优化方面的程序项目 > 暂时没用的例子/Untitled6.m

    a = 1.5;
[x,fval,exitflag]= fminsearch(@(x) myfun0(x,a),[0,1])