zzz700 | 九级
以下代码在7.1版以上均可运行。
F = @(x) [(3*x(1)+x(2))^3*(x(1)-x(2))*1.2^2-0.26722*(1-x(1))*(6-x(1)-x(2))*(7+2*x(1))^2;
(3*x(1)+x(2))*x(2)-1.368*(x(1)-x(2))*(6-x(1)-x(2))];
x0 = [0.5; 5]; % Make a starting guess at the solution
x1 = fsolve(F,x0) % Call solver
结果为:
x1 =
0.8600
0.5717
]]>