Not enough input arguments error when using exp

19 ビュー (過去 30 日間)
Robbie
Robbie 2013 年 1 月 10 日
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 件のコメント
felipe villamil cubillos
felipe villamil cubillos 2021 年 5 月 26 日
It is because you use exp^() and the correct form is: exp()

サインインしてコメントする。

採用された回答

José-Luis
José-Luis 2013 年 1 月 10 日
編集済み: José-Luis 2013 年 1 月 10 日
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));

その他の回答 (1 件)

Robbie
Robbie 2013 年 1 月 10 日
Thanks

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by