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.

My main idea is to put points at when and travels through the integers from to .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');

Thanks for the help.