Problem with fzero to solve transcendental equation

10 views (last 30 days)
I am trying to solve a transcendental equation in x.
k=8.617*10^(05);
Vd3=-48.8;
Vd2=-.18;
fun=@(x) 1-exp((-exp(1)*Vd3)/(k*x))-2+2*exp*((-exp(1)*Vd2)/(k*x));
x0=3;
z=fzero(fun,x0)
I keep getting the error "not enough input arguments".

Answers (1)

David Goodmanson
David Goodmanson on 30 Oct 2017
Hi Nihal,
in the function definition, try deleting the * following the second incidence of 'exp'.

Categories

Find more on Optimization Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!