[Matlab] 2D Sequence Plot in 3D

Dear Friends,

I am trying to plot a 2D sequence in 3D with the following code, but I dont know why it does not work.

Code:

`z=ones(30,30);`

for i=1:30

for j=1:30

z(i,j)=sin(i*j);

end

end

x=1:30;

y=1:30;

plot3(x,y,z);

grid on;

box on;

xlabel('x');

ylabel('y');

zlabel('z');

My main idea is to put points at $\displaystyle (x,y,sin(x*y))$ when $\displaystyle x$ and $\displaystyle y$ travels through the integers from $\displaystyle 1$ to $\displaystyle 30$.

Thanks for the help.