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

1 次查看(过去 30 天)
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 个评论
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 CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by