i have a syntax error in u(3)-u(4)(​exp((u(2)u​(1)+u(6)))​)/(u(5))-1​) what the error ?

2 Ansichten (letzte 30 Tage)
Loai Baseuni
Loai Baseuni am 12 Aug. 2020
Kommentiert: Walter Roberson am 13 Aug. 2020
..
  1 Kommentar
Walter Roberson
Walter Roberson am 13 Aug. 2020
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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

hosein Javan
hosein Javan am 12 Aug. 2020
Bearbeitet: hosein Javan am 12 Aug. 2020
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)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by