I have been able to solve some differential equations using Tables. The code works fine without errors. However, I am unable to plot the results. Any help would be appreciated.
n = 10;
initialx = Table[Subscript[x, i][0] == (i - 1)*0.1, {i, 1, 11}];
initialy = Table[Subscript[y, i][0] == 0, {i, 1, 11}];
eqnvx = Table[
Subscript[x, i]'[t] == (100*Subscript[x, i][t]), {i, 2, 10} ];
eqnvx1 = {Subscript[x, 1]'[t] == 0};
eqnvx11 = {Subscript[x, 11]'[t] == 0};
eqnvy = Table[
Subscript[y, i]'[t] == (100*Subscript[y, i][t]), {i, 2, 10} ];
eqnvy1 = {Subscript[y, 1]'[t] == 0};
eqnvy11 = {Subscript[y, 11]'[t] == 0};
s = NDSolve[{eqnvx1 && eqnvx && eqnvx11 && eqnvy1 && eqnvy && eqnvy11,
initialx && initialy}, {Subscript[x, i], Subscript[y, i]}, {t, 0,
20}]
Plot[Evaluate[Subscript[x, 1][t] /. s], {t, 0, 100}]
x[i]instead ofSubscript[x, i].Subscripts work funny in Mathematica. You should follow the link posted by @belisariushassettled and read it. – march Dec 01 '15 at 21:55x[1][t].. – george2079 Dec 01 '15 at 21:59