Problem with fzero to solve transcendental equation
10 views (last 30 days)
Show older comments
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".
0 Comments
Answers (1)
David Goodmanson
on 30 Oct 2017
Hi Nihal,
in the function definition, try deleting the * following the second incidence of 'exp'.
0 Comments
See Also
Categories
Find more on Optimization Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!