用matlab fminsearch 函数怎么求z=2x^2+3y^2-4xy-y-3x的最小值?我是这么写的:x=linspace(-2,0,40);y=linspace(0,3,40);z=2*x.^2+3*y.^2-4*x.*y-y-3*y;[x,fval]=fminsearch(z,[-2,0])结果显示:? Error using ==> fcnchk at 108FUN must be a fun
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/01 08:16:57
x]OPǿʹlG7DV01xWnt[u+K[H&06ǛED[˗9]
>}I4Hwfrs?ϯϚ(o(%ET~B%U&SEF؞>4=]{I>Y )&ǝ**};i\|J,etލEqCz5]Cs\8zô^#uyi7Q @锔ʾ@b=EqEEI(=.%riS- [ix"{ŋ*IOE* "/!Qfh,\HOԷ%߳=(qAIgrQ/rFP0*9c5
9