matlab求解非线性方程组 fsolve - Solve system of nonlinear equations

最近有人问我matlab求解方程组的问题,

下面提供了fsolve函数help,但要有几点需要注意

1.方程组的有解性

2.方程组解是否唯一

3.x0的选取,如果解不唯一,不同的x0可能会得到不同的解

fsolve - Solve system of nonlinear equations

Equation

Solves a problem specified by

F(x) = 0

for x, where x is a vector and F(x) is a function that returns a vector value.

Syntax

x = fsolve(fun,x0)
x = fsolve(fun,x0,options)
x = fsolve(problem)
[x,fval] = fsolve(fun,x0)
[x,fval,exitflag] = fsolve(...)
[x,fval,exitflag,output] = fsolve(...)
[x,fval,exitflag,output,jacobian] = fsolve(...)

Descr

你可能感兴趣的:(Matlab)