Suppose I solve the following differential equation numerically:
s = Flatten@
NDSolve[{Y'[t] == Y[t],
Y[0] == {{0.1, 0.2, 0.3}, {0.1, 0.2, 0.2}, {0.3, 0.4, 0.5}}},
Y, {t, 0, 20}]
This yields a result in terms of InterpolatingFunction[]of dimension {3,3} as Yis a 3 by 3 matrix.
Now, if I wish to plot each component Y[[i,j]] from the solution stored in s then how is it possible?
I tried
Plot[ Evaluate[Y[[1,2]][t]/.s],{t,0,20}]
for component Y[[1,2]] but it didn't work.
Any idea how to extract each component from the solution sand plot?

Indexed[Y[t], {i, j}]? See also https://mathematica.stackexchange.com/questions/144480/how-to-access-the-components-of-a-vector-valued-interpolating-function and https://mathematica.stackexchange.com/questions/126342/nintegrate-of-a-vector-valued-interpolatingfunction-gives-not-numerical/126361#126361 – Michael E2 May 03 '22 at 18:31Plot[Evaluate[Indexed[Y[t], {1, 3}] /. s], {t, 0, 20}]– Epsilon May 03 '22 at 18:37