1.fsolve : solves systems of nonlinear equations of several variables.
2. Step1:write an m-file
function f = weilai(x)
f(1) = x(1)*x(1)+x(2)*x(2)-0.000449;
f(2) = x(1)*x(3)+x(2)*x(4)-0.000181;
f(3) = x(3)*x(3)+x(4)*x(4)-0.000753;
f(4) = -411.693*x(1)+62.1194*x(3);
% save as weilai.m in a directory on the MATLAB path.
Step2: at the MATLAB command prompt. Enter
x0=[1,1,1,1]; %make a start guess at the solution
x=fsolve('weilai',x0)
x =
0.0041 0.0208 0.0273 0.0033
3.答案会随起始点不同而不同,请设定为你认为最适当的值.