i have a syntax error in u(3)-u(4)(​exp((u(2)u​(1)+u(6)))​)/(u(5))-1​) what the error ?

조회 수: 1 (최근 30일)
Loai Baseuni
Loai Baseuni 2020년 8월 12일
댓글: Walter Roberson 2020년 8월 13일
..
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 8월 13일
https://www.mathworks.com/matlabcentral/answers/578865-i-have-a-syntax-error-in-u-3-u-4-exp-u-2-u-1-u-6-u-5-1-what-the-error?s_tid=srchtitle is duplicate

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

답변 (1개)

hosein Javan
hosein Javan 2020년 8월 12일
편집: hosein Javan 2020년 8월 12일
you didn't have product sign"*". also there were bunch of incorrect parantheis. copy and paste should work.
u(3)-u(4)*(exp(u(2)*u(1)+u(6)))/(u(5)-1)
if you are using simulin fcn you can also replace it with this for simplicity and aviod mistakes:
u[3]-u[4]*(exp(u[2]*u[1]+u[6]))/(u[5]-1)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by