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
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 中查找有关 Modeling 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by