Anyway to "vectorize" the coding of symbolic ODE systems?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Sree
el 24 de Nov. de 2018
Editada: madhan ravi
el 24 de Nov. de 2018
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 comentarios
Respuesta aceptada
madhan ravi
el 24 de Nov. de 2018
Editada: madhan ravi
el 24 de Nov. de 2018
Your code looks perfect(well organised and neat symbolic forms) , please don't think of changing it.
If you still insist doing it see https://www.mathworks.com/matlabcentral/answers/426111-create-n-symbolic-variables#answer_343420
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!