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 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