t=linspace(-10,10,500);x=sin(t);y=cos(t);z=t;stem3(x,y,z);
x=linspace(-pi,pi,100);y=linspace(-1,1,100);[X,Y]=meshgrid(x,y);Z=Y.^2.*sin(X);mesh(X,Y,Z);