[英]nonlinear matrix equation solving in matlab
is it possible to solve below equation in matlab? 在MATLAB中可以解决以下方程式?
A*X+B*exp(X)=C
A, B are square and constant matrices. A,B是平方矩阵和常数矩阵。 C is a constant and column matrix.
C是常数和列矩阵。 X is a column matrix which should be found.( exp() acts element by element on X).
X是应该找到的列矩阵。(exp()在X上逐个元素地起作用)。
If you are looking for a numeric method, you might want to try fsolve
如果您正在寻找数值方法,则可能需要尝试
fsolve
X = fsolve( @(x) A*x + B*exp(x) - C, x0 );
Due to the non-linear nature of the problem you need to provide an initial guess x0
- the quality of which can affect the performance of the solver. 由于问题的非线性性质,您需要提供初始猜测值
x0
其质量会影响求解器的性能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.