I have an ode equation which produces a list like below:
u=[array([ 2.06642033, -0.03448756]),
array([ 2.03964994, -0.18737285]),
array([ 1.99884859, -0.21461016]),
array([ 1.95476809, -0.2254584 ]),
array([ 1.90875336, -0.23472173]),
array([ 1.86082857, -0.24471069]),
... ]
I want to plot u[0] and u[1] based on time. I try to access all first and second elements of u in two list with l1=u[0:len(u)-1][0] and l2=u[0:len(u)-1][1], but it gives me only the first item from list.
Does anyone have a solution for it?
Thanks