>> x=0:.1:2*pi;plot(x,sin(x),x,cos(x))
>> plot(x,sin(x),'pentagramr',x,cos(x),'.b')
x=linspace(0,2*pi,30);y=sin(x);
z=cos(x);u=2*sin(x).*cos(x);v=sin(x)./cos(x);
subplot(2,2,1),plot(x,y),title('y=sinx')
subplot(2,2,2),plot(x,z),title('z=cosx')
subplot(2,2,3),plot(x,u),title('u=sin2x')
subplot(2,2,4),plot(x,v),title('v=tanx')
>> [X1,Y1]=meshgrid([-3:.1:3]);
Z1=sin(X1.^2+Y1.^2)./sqrt(X1.^2+Y1.^2+eps);
[X0,Y0,Z0]=sphere(20);
X2=X0+1;Y2=Y0+1;Z2=0.8*Z0+2;
surf(X1,Y1,Z1) ; hold on
mesh(X2,Y2,Z2) ; hold off
axis equal
shading interp
>>
>> [X,Y,Z]=peaks(30);surf(X,Y,Z)
>> figure(2);
>> contour(X,Y,Z,16)
>> figure(3); contour3(X,Y,Z,16)