Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
JOHAN MARDINI B.
ING. ELECTRNICO
E S P. R E D E S C O N V E R G E N T E S
M S C . I N G E N I E R A D E S I S T E M A S Y C O M P U TA C I N
OBJETIVOS
OPCION 2:
Comet3(sin(t),cos(t),t)
Grid on
FUNCIONES DE LA FORMA z=f(x,y)
1. Se tienen que generar tabla de valores para X y Y.
2. Se genera un mallado sobre un rectngulo del plano XY
3. Se utiliza comando meshgrid
EJEMPLO 2
Dibujar grafica z = e(x2+y2) en la regin del plano D={(x,y)/2x2,
2y2}
1. Generamos mallado
[x,y]= meshgrid(-2:.5:2);
2. Sustituimos en la funcin, para calcular valores
de z
z=exp(-x.^2-y.^2);
Y ahora podemos dibujar el grafico con alguno de
los siguientes comandos que producen los dibujos
plot3(x,y,z) ;
mesh(x,y,z) ;
surf(x,y,z) ;
surf(x,y,z),shading flat
MANIPULACIN DE GRAFICOS 3D
Ejemplo :
[x,y]=meshgrid(linspace(-1,1,50));
z=cos((x.*y)./(x.^2+y.^2+1));
surf(x,y,z),colorbar
MANIPULACIN DE GRFICOS 3D: EJES
Las longitudes de los ejes coordenados tambin se
pueden modificar con el comando .
axes([xmin xmax ymin ymax zmin zmax])