<>function[f,g]=fun3(x);<br>f=-x(1)-2*x(2)+(1./2)*x(1)^2+(1./2)*x(2)^2;<br>g=[2*x(1)+3*x(2)-6;x(1)+4*x(2)-5];</P>
<><br>运行错误:??? Input argument "x" is undefined.</P>
<>Error in ==> fun3 at 2<br>f=-x(1)-2*x(2)+(1./2)*x(1)^2+(1./2)*x(2)^2;</P>
<P><br>请问到底是什么错误啊???</P>
[此贴子已经被作者于2005-9-15 7:29:12编辑过]
|