What is the syntax problem?
古いコメントを表示
c1*(c2/u[2]-c3*u[3]-c4)*exp(-c5/u[2])+c6*u[1]
someone can help me?
5 件のコメント
Torsten
2022 年 9 月 7 日
Replace [ ] by ( )
Antonio Itta
2022 年 9 月 7 日
Antonio Itta
2022 年 9 月 7 日
I don't know what Simulink requires. As MATLAB expression, it works for me.
Maybe the unnecessary bracket around u(3) must be deleted.
syms c1 c2 c3 c4 c5 c6
u = [2 4 6]
c1*(c2/u(2)-c3*(u(3))-c4)*exp(-c5/u(2))+c6*u(1)
Star Strider
2022 年 9 月 7 日
u = @(t) t>=0;
Also, it may be necessary to use element-wise operations. See: Array vs. Matrix Operations for details.
.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Formula Manipulation and Simplification についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

