Professional Documents
Culture Documents
Guia de TP 7
Guia de TP 7
Actividad 7:
Tema: Grficas de cudricas en su forma cannica
Grafique las siguientes cudricas, siguiendo los comandos del instructivo.
1) Elipsoide
a)
x2 y2 z 2
+
+
=1
64 36 16
>> x=linspace(-20,20,100);
>> y=linspace(-20,20,100);
>> z=linspace(0,0,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>> Q=X.^2/64+Y.^2/36+Z.^2/16;
>> H=patch(isosurface(X, Y, Z, Q,1));
>> view(3)
>> xlabel('Eje X')
>> ylabel ('Eje Y')
>> zlabel ('Eje Z')
>> title('ELIPSOIDE')
>> grid; hold on
>> %Traza en el plano YZ, con X=0
>> x=linspace(0,0,100);
>> y=linspace(-20,20,100);
>> z=linspace(-20,20,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>> Q=X.^2/64+Y.^2/36+Z.^2/16;
>> H=patch(isosurface(X, Y, Z, Q,1));
>> view(3)
>> %Traza en el plano XZ, con Y=0
>> x=linspace(-20,20,100);
>> y=linspace(0,0,100);
>> z=linspace(-20,20,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>> Q=X.^2/64+Y.^2/36+Z.^2/16;
>> H=patch(isosurface(X, Y, Z, Q,1));
>> view(3)
Algebra
ELIPSOIDE
Eje Z
-2
-4
10
5
10
5
-5
Eje Y
-5
-10
-10
Eje X
Algebra
-2
-4
10
5
10
5
-5
-5
-10
b)
-10
x2 y2 z2
+
+
=1
16 25 49
>> x=linspace(-20,20,100);
>> y=linspace(-20,20,100);
>> z=linspace(0,0,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>> Q=X.^2/16+Y.^2/25+Z.^2/49;
>> H=patch(isosurface(X, Y, Z, Q,1));
>> view(3)
>> xlabel('Eje X')
>> ylabel ('Eje Y')
>> zlabel ('Eje Z')
>> title('ELIPSOIDE')
>> grid; hold on
>> %Traza en el plano YZ, con X=0
>> x=linspace(0,0,100);
>> y=linspace(-20,20,100);
>> z=linspace(-20,20,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>> Q=X.^2/16+Y.^2/25+Z.^2/49;
>> H=patch(isosurface(X, Y, Z, Q,1));
>> view(3)
>> %Traza en el plano XZ, con Y=0
>> x=linspace(-20,20,100);
>> y=linspace(0,0,100);
>> z=linspace(-20,20,100);
3
Algebra
>> [X,Y,Z]=meshgrid(x,y,z);
>> Q=X.^2/16+Y.^2/25+Z.^2/49;
>> H=patch(isosurface(X, Y, Z, Q,1));
>> view(3)
ELIPSOIDE
10
Eje Z
-5
-10
5
4
2
0
-2
Eje Y
-5
-4
Eje X
Algebra
ELIPSOIDE
10
Eje Z
-5
-10
5
4
2
0
-2
Eje Y
-5
-4
Eje X
x2 y2 z2
+
=1
9 16
4
Algebra
>> [X,Y,Z]=meshgrid(x,y,z);
>> Q=X.^2/9+Y.^2/16-Z.^2/4;
>> H=patch(isosurface(X, Y, Z, Q,1));
view(3)
>> %Traza en plano XZ, con Y=0
>> x=linspace(-20,20,100);
>> y=linspace(0,0,100);
>> z=linspace(-20,20,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>> Q=X.^2/9+Y.^2/16-Z.^2/4;
>> H=patch(isosurface(X, Y, Z, Q,1));
>> view(3)
>> %Traza en el plano YZ, con X=0
>> x=linspace(0,0,100);
>> y=linspace(-20,20,100);
>> z=linspace(-20,20,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>> Q=X.^2/9+Y.^2/16-Z.^2/4;
15
10
Eje Z
5
0
-5
-10
-15
20
10
20
10
-10
Eje Y
-10
-20
-20
Eje X
Algebra
>> view(3)
b)
x2 y2 z2
+
+
=1
16 25 49
Algebra
Algebra
20
Eje Z
10
-10
-20
20
10
20
10
-10
Eje Y
-10
-20
-20
Eje X
Algebra
3) Paraboloide hiperblico
a)
x2 y2
+
z =1
4 16
Algebra
11
Algebra
12
Algebra
b) x
y2 z2
+
=1
16 25
Algebra
14
Algebra
15
Algebra
4) Cono
a)
x2 y2 z2
+
=1
4
9
9
Algebra
>>grid; hold on
>> x=linspace(-20,20,100);
>>y=linspace(0,0,100);
>>z=linspace(-20,20,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>>Q=X.^2/4+Y.^2/9-Z.^2/9;
>>H=patch(isosurface(X, Y, Z, Q,0));
>>view(3)
>> x=linspace(-20,20,100);
>>y=linspace(-20,20,100);
>>z=linspace(-15,-15,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>>Q=X.^2/4+Y.^2/9-Z.^2/9;
>>H=patch(isosurface(X, Y, Z, Q,0));
>>view(3)
>> x=linspace(0,0,100);
>>y=linspace(-20,20,100);
>>z=linspace(-20,20,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>>Q=X.^2/4+Y.^2/9-Z.^2/9;
>>H=patch(isosurface(X, Y, Z, Q,0));
>>view(3)
>> x=linspace(-20,20,100);
>>y=linspace(-20,20,100);
>>z=linspace(15,15,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>>Q=X.^2/4+Y.^2/9-Z.^2/9;
17
Algebra
>>H=patch(isosurface(X, Y, Z, Q,0));
>>view(3)
18
Algebra
>>view(3)
b)
x2 y2 z 2
+
+
=1
16 16 16
Algebra
>>view(3)
>> %Plano en Z=-15
>> x=linspace(-20,20,100);
>>y=linspace(-20,20,100);
>>z=linspace(-15,-15,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>>Q=X.^2/16+Y.^2/16-Z.^2/16;
>>H=patch(isosurface(X, Y, Z, Q,0));
>>view(3)
>> %Traza en plano YZ, con X=0
>> x=linspace(0,0,100);
>>y=linspace(-20,20,100);
>>z=linspace(-20,20,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>>Q=X.^2/16+Y.^2/16-Z.^2/16;
>>H=patch(isosurface(X, Y, Z, Q,0));
>>view(3)
>>>> %Plano en Z=15
>> x=linspace(-20,20,100);
>>y=linspace(-20,20,100);
>>z=linspace(15,15,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>>Q=X.^2/16+Y.^2/16-Z.^2/16;
>>H=patch(isosurface(X, Y, Z, Q,0));
>>view(3)
Algebra
>>z=linspace(-20,20,100);
>> [X,Y,Z]=meshgrid(x,y,z);
>>Q=X.^2/16+Y.^2/16-Z.^2/16;
>>H=patch(isosurface(X, Y, Z, Q,0));
>>set(H,'FaceColor','red','EdgeColor','none');
>>view(3)
21