1
votes

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).

1
Symbolic toolbox available? Then try mathworks.com/help/symbolic/solve.html. You need to initialize the sym X with correct size, otherwise it will fail: X=sym('X',size(C)) - Daniel
yes. it is available. i solved it by fsolve. - Mr. Nobody

1 Answers

2
votes

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.