clear,clc,clf
subplot(221)
ezsurf('2*sin(u)*cos(v)','sqrt(5)*sin(u)*sin(v)','sqrt(5)*cos(u)',[0,pi,0,2*pi])
x=-2:0.1:2;
[x,y]=meshgrid(x);
z=exp(x.^2+y.^2);
subplot(222)
surf(x,y,z)
x=-2:0.1:2;
[x,y]=meshgrid(x);
z=exp(x^2)*sin(x+y);
subplot(223)
surf(x,y,z)
x=-2:0.1:2;
[x,y]=meshgrid(x);
t=sqrt((1-x).^2+y.^2);
tt=sqrt((1+x).^2+y.^2);
z=1./t+1./tt;
subplot(224)
surf(x,y,z)
subplot(221)
ezsurf('2*sin(u)*cos(v)','sqrt(5)*sin(u)*sin(v)','sqrt(5)*cos(u)',[0,pi,0,2*pi])
x=-2:0.1:2;
[x,y]=meshgrid(x);
z=exp(x.^2+y.^2);
subplot(222)
surf(x,y,z)
x=-2:0.1:2;
[x,y]=meshgrid(x);
z=exp(x^2)*sin(x+y);
subplot(223)
surf(x,y,z)
x=-2:0.1:2;
[x,y]=meshgrid(x);
t=sqrt((1-x).^2+y.^2);
tt=sqrt((1+x).^2+y.^2);
z=1./t+1./tt;
subplot(224)
surf(x,y,z)