Parse error at u: usage might be invalid MATLAB syntax.

3 views (last 30 days)
BO-HAO LIN
BO-HAO LIN on 25 Oct 2021
Commented: Dave B on 25 Oct 2021
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.

Answers (1)

Dave B
Dave B on 25 Oct 2021
Edited: Dave B on 25 Oct 2021
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...
  2 Comments

Sign in to comment.

Tags

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by