Question: vector column matrix

hi please let me know how to write the required values of U(0,0), U(1,0),...,U(M,0) in vector column matrix

h := 1/4;

k := 1/4;

r := k/h^2;

m := 4; n := 4:

for i from 0 to m do

U[i, 0] := evalf(cos(Pi*i*h))

od;

Please Wait...