Graficas En Matlab

Páginas: 4 (786 palabras) Publicado: 29 de octubre de 2012
GRAFICAS EN MATLAB

X.^2+(Y^2)/4+Z^2=1


Xa=-4:0.1:4;
Ya=-4:0.1:4;
[X, Y]=meshgrid(Xa, Ya);
Z=real(sqrt(1-X.^2-(Y^2)/4));


surf(X, Y, Z)axis('square')
hold on
Z=-real(sqrt(1-X.^2-(Y^2)/4));
surf(X, Y, Z)


title('X.^2+(Y^2)/4+Z^2=1')
xlabel('ejex')
ylabel('eje y')
zlabel('eje z')grid on




[pic]












16*X.^2-Y^2+16*Z^2=4


Xa=-4:0.1:4;
Ya=-4:0.1:4;
[X, Y]=meshgrid(Xa, Ya);Z=real(sqrt(1/4-X.^2+1/16*Y^2));


plot3(X, Y, Z)
surf(X, Y, Z)
axis('square')
hold on
Z=real(sqrt(1/4-X.^2+1/16*Y^2));
plot3(X, Y, Z)
surf(X, Y, Z)title('16*X.^2-Y^2+16*Z^2=4')
xlabel('ejex')
ylabel('eje y')
zlabel('eje z')
grid on




[pic]












Z=x^2+y^2


Xa=-5:0.1:5;Ya=-5:0.1:5;
[X, Y]=meshgrid(Xa, Ya);
Z=X.^2+Y.^2;

colormap hsv
colormap jet
colormap hot
colormap cool

surf(X, Y, Z)title('f(x,y)=x^2+y^2')
xlabel('Eje x');
ylabel('Eje y');
zlabel('Eje z');
grid on


[pic]
















Z=X.^2+4Y.^2


Xa=-5:0.1:5;Ya=-5:0.1:5;
[X, Y]=meshgrid(Xa, Ya);
Z=X.^2+4*Y.^2;


mesh(X, Y, Z)
meshc(X, Y, Z)
meshz(X, Y, Z)


title('f(x,y)=X.^2+4Y.^2')xlabel('Eje x');
ylabel('Eje y');
zlabel('Eje z');
grid on








[pic]
















X.^2=2*Y^2+2*Z^2


Xa=-4:0.1:4;Ya=-4:0.1:4;
[X, Y]=meshgrid(Xa, Ya);
Z=real(sqrt((X.^2)/2-Y^2));


surf(X, Y, Z)
axis('square')
hold on
Z=-real(sqrt((X.^2)/2-Y^2));
surf(X, Y,...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Graficas MATLAB
  • Gráficas en MATLAB
  • Graficas Matlab
  • graficos matlab
  • Graficando En Matlab
  • Graficos MatLab
  • Graficas Y Curve Fitting En Matlab
  • MatLab funciones para graficar

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS