Not enough input arguments error when using exp

조회 수: 16 (최근 30일)
Robbie
Robbie 2013년 1월 10일
댓글: felipe villamil cubillos 2021년 5월 26일
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 CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by