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

1 次查看(过去 30 天)
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 个)

Dave B
Dave B 2021-10-25
编辑:Dave B 2021-10-25
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...

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by