Question: Loop for a matrix

Hello to anyone, 

i am trying to change the valué of x downwards in to the matrix of the next code, but my loop is failing. 
 

n:=5

R:=Matrix(5,n):

for i from 1 to n do 

R[..,i]:=(sin(i*x));

end do:

R;

Untill here all okay, but the next loop is the problem

for i from 1 to 5 do

i:=i

x:=i

R[i,..] := sin(x));

end do:

R;


Thanks for your kind help 

Please Wait...