Mr. Nobody
Mr. Nobody

Reputation: 325

nonlinear matrix equation solving in matlab

is it possible to solve below equation in matlab?

A*X+B*exp(X)=C

A, B are square and constant matrices. C is a constant and column matrix. X is a column matrix which should be found.( exp() acts element by element on X).

Upvotes: 1

Views: 1754

Answers (1)

Shai
Shai

Reputation: 114796

If you are looking for a numeric method, you might want to try 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.

Upvotes: 2

Related Questions