MATLAB: How to solve this equation

equationplot

I have this equation and it seems hard to calculate manually so I decided to write a code… but I cannot 🙁
a+b*x=x/(b*ln((x-e)/x));
Only x is the variable, a,b and e is known.
Thank!

Best Answer

syms x
eqn = a+b*x==x/(b*log((x-e)/x));
vpasolve(eqn, x)
Or
eqn = @(x) (a+b*x) - (x/(b*log((x-e)/x)));
fzero(eqn, InitialGuess)