This might be a duplicate, but I have not seen this problem addressed for DSolve usage.
I have a system of ODEs of the form
Y' = AY + B
When we put this into Mathematica as a vector variable:
sol = FullSimplify[DSolve[y'[t] == A . y[t], y \[Element] Vectors[n], t]]
We get a pure function solution where each state variable solution is just separated by a comma. I would like each state variable in the solution to be labelled in the standard way:
vec_{y} = {y_{1}, y_{2}, ..., y_{n}} = {y_{1} = c1*e^(-10t)+..., ...}
So that I can also subset the solution depending on which variable I am interested in, for example sol[[y1]]
or sol[[1]]
.
_
in code in this way, because in code, it meansBlank[]
(q.v.). $\endgroup$