Not enough input arguments error when using exp

17 vues (au cours des 30 derniers jours)
Robbie
Robbie le 10 Jan 2013
Hi, I am very new to matlab and I and getting the 'not enough input arguments when typing this.
EDU>> syms x
EDU>> f = 5*exp^(2*x - sin(x^2))
Any help is appreciated.
Thanks
  1 commentaire
felipe villamil cubillos
felipe villamil cubillos le 26 Mai 2021
It is because you use exp^() and the correct form is: exp()

Connectez-vous pour commenter.

Réponse acceptée

José-Luis
José-Luis le 10 Jan 2013
Modifié(e) : José-Luis le 10 Jan 2013
That's because you are not passing any arguments to the exp() function. You probably meant:
f = 5*exp(2*x - sin(x^2));
Or if you meant the number e:
f = 5*exp(1)^(2*x - sin(x^2));

Plus de réponses (1)

Robbie
Robbie le 10 Jan 2013
Thanks

Community Treasure Hunt

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

Start Hunting!

Translated by