Está en la página 1de 2

clear all; close all; clc

%MALLA
[x,y]=meshgrid(-10:0.5:10);
z= sin (sqrt (x .^2 + y .^2)) ./ sqrt (x .^ 2 + y .^ 2 + 0.1);
%cuadrante 1
subplot(2,5,1)
mesh(x,y,z)
title('Grfica 1-mesh')
xlabel('eje X')
ylabel('eje Y')
zlabel('eje Z')
hold on
%Cuadrante 2
subplot(2,5,[2,3])
meshc(x,y,z)
title('Grfica 2-meshc')
xlabel('eje X')
ylabel('eje Y')
zlabel('eje Z')
hold on
%Cuadrante 3
subplot(2,5,[4,5])
surfl(x,y,z)
title('Grfica 3-surfl')
xlabel('eje X')
ylabel('eje Y')
zlabel('eje Z')
hold on
%Cuadrante 4
subplot(4,5,11)
surfc(x,y,z)
title('Grfica 4-surfc')
xlabel('eje X')
ylabel('eje Y')
zlabel('eje Z')
hold on
%Cuadrante 5
subplot(4,4,10)
waterfall(x,y,z)
title('Grfica 5-waterfall')
xlabel('eje X')
ylabel('eje Y')
zlabel('eje Z')
hold on
%Cuadrante 6
subplot(2,2,4)
contour3(x,y,z)
title('Grfica 6-contour3')
xlabel('eje X')
ylabel('eje Y')
zlabel('eje Z')
hold on
%Cuadrante 7
subplot(4,2,7)
colormap(hot);
surf (x,y,z), shading interp;
title('Grfica 7-colormap')
xlabel('eje X')
ylabel('eje Y')
zlabel('eje Z')
colormap('default');
hold on

También podría gustarte