You are on page 1of 5

t = [0:0.2:6.

3];

w = [25 50 12 7 34];

x =[ -4:1:10];

y = cos(x);

[x,y] = meshgrid (-2:0.2:2);

z =x.^2+y.^2;

subplot (2,2,1), meshc(x,y,z), xlabel('x'), ylabel('y'), zlabel('z'), title('Grafica 1')

subplot (2,2,2), cylinder(2+sin(t), title('Grafica 2')

subplot (2,2,3), sphere, xlabel('x'), ylabel('y'), zlabel('z'), title('Grafica 3')

subplot (2,2,4), pie3(w), title('Grafica 4')

t = [0:0.2:6.3];

w = [25 50 12 7 34];

[x,y] = meshgrid (-2:0.2:2);

z =x.^2+y.^2;

subplot (2,2,1), meshc(x,y,z), xlabel('x'), ylabel('y'), zlabel('z'), title('Grafica 1')

subplot (2,2,4), pie3(w), title('Grafica 4')

x =[ -4:1:10];

y = cos(x);

t = [0:0.2:6.3];

w = [25 50 12 7 34];

[x,y] = meshgrid (-2:0.2:2);

z =x.^2+y.^2;

subplot (2,2,1), meshc(x,y,z), title('Grafica 1')

subplot (2,2,2), cylinder(2+sin(t)), title('Grafica 2')


subplot (2,2,3), sphere, xlabel('x'), ylabel('y'), zlabel('z'), title('Grafica 3')

subplot (2,2,4), pie3(w), title('Grafica 4')


a,b = meshgrid (-1.5:0.2:1.5);

c =sin(x.2 + y.2);

t =0:0.1:2*pi;

s =2*cos(4*t);

w= 25 50 12 7 34;

x,y = meshgrid (-4:0.2:4);

z =-x.2 - y.2 + 8;

subplot (2,2,1), contour(x,y,z,20), title('Grafica 1')

subplot (2,2,2), pie3(w), title('Grafica 2')

subplot (2,2,3), polar(t,s), title('Grafica 3')

subplot (2,2,4), surf(a,b,c), xlabel('x'), ylabel('y'), zlabel('z'), title('Grafica 4')

[a,b] = meshgrid (-1.5:0.2:1.5);

c =sin(a.^2 + b.^2);

t =0:0.1:2*pi;

s =2*cos(4*t);

w=[ 17 50 33];

[x,y ]= meshgrid (-4:0.2:4);

z =-x.^2 - y.^2 + 8;

subplot (2,2,1), contour3(x,y,z,20), title('Grafica 1')

subplot (2,2,2), pie3(w), title('Grafica 2')

subplot (2,2,3), polar(t,s), title('Grafica 3')

subplot (2,2,4), surf(a,b,c), xlabel('x'), ylabel('y'), zlabel('z'), title('Grafica 4')

You might also like