フィルターのクリア

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

4 ビュー (過去 30 日間)
Loai Baseuni
Loai Baseuni 2020 年 8 月 12 日
コメント済み: Walter Roberson 2020 年 8 月 13 日
..
  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 Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by