フィルターのクリア

Anyway to "vectorize" the coding of symbolic ODE systems?

1 回表示 (過去 30 日間)
Sree
Sree 2018 年 11 月 24 日
編集済み: madhan ravi 2018 年 11 月 24 日
In other words, can the attached code be condensed using For loops and succint notation for c1(t), c2(t) etc.? I know how to generate subscripted symbolic variables, but am stumped with subscripted symfuns, especially in the context of the common dependent variable, here t.
  2 件のコメント
madhan ravi
madhan ravi 2018 年 11 月 24 日
+1 for organised code
Sree
Sree 2018 年 11 月 24 日
Thanks, but condensing the code would enable generalizing it to more than 5 species. A For Loop with n, instead of 5 . . . .

サインインしてコメントする。

採用された回答

madhan ravi
madhan ravi 2018 年 11 月 24 日
編集済み: madhan ravi 2018 年 11 月 24 日
Your code looks perfect(well organised and neat symbolic forms) , please don't think of changing it.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by