Parse error at u: usage might be invalid MATLAB syntax.
이전 댓글 표시
I want to draw a curve of a cubic equation in SIMULINK, which shows a syntax error. I don’t know what the error is.

답변 (1개)
If you want to multiply you need a *
y=-0.0811*u^3...
Also consider if you want to raise a vector to the power of 3, you probably want .^
y=-0.0811*u.^3...
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!