Problem with fzero to solve transcendental equation

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

Réponses (1)

David Goodmanson
David Goodmanson le 30 Oct 2017

0 votes

Hi Nihal,
in the function definition, try deleting the * following the second incidence of 'exp'.

Catégories

En savoir plus sur Optimization dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by