Simplify error in matlab

조회 수: 3 (최근 30일)
Bob
Bob 2015년 1월 29일
댓글: Sean de Wolski 2015년 1월 29일
I have this code: simplify(((sin*(x^2))*(sec*x))/(1+sec*x))
and getting this error: Error using sin Not enough input arguments.
Error in project1 (line 5) p6=simplify(((sin*(x^2))*(sec*x))/(1+sec*x))

답변 (1개)

Sean de Wolski
Sean de Wolski 2015년 1월 29일
편집: Sean de Wolski 2015년 1월 29일
sin*
Is not a valid expression... sin is a function that expects inputs:
sin(1)
What you are doing is
sin*(1)
which will give the same error. Same with sec
  댓글 수: 2
Bob
Bob 2015년 1월 29일
Thank you!
Sean de Wolski
Sean de Wolski 2015년 1월 29일
If it worked, please accept the answer to mark it closed.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by