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일)
이전 댓글 표시
..
댓글 수: 1
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
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)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Genetic Algorithm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!