Sie sind auf Seite 1von 8

ESPOCH

DEBER
HERRAMIENTAS EDA
PAUL ASTUDILLO

322

SEGUNDOD

Dibujar las siguientes funciones en los dominios


especificados:

1.
fplot('x.*exp(-x.^2)',[-2,2]);

2.
fplot('(x.^2-1).^1/2',[-3,3,-1,3]);

3.
fplot('x.^2.*sin(1/x)',[-2,2]);

4.
fplot('x.^2.*sin(1/x)',[-0.1,0.1]);

5.
theta=linspace(0,3*pi);
r=exp(cos(theta))-2.*cos(4.*theta)+sin(theta.^5/12);
[x,y] = pol2cart(theta,r);
subplot(2,1,1)
plot(x,y)
title('Coordenadas Cartesianas')
subplot(2,1,2)
polar(theta,r)
title('Coordenadas Polares')

6.
theta=linspace(0,3*pi);
r=4.*theta;
[x,y] = pol2cart(theta,r);
subplot(2,1,1)
plot(x,y)
title('Coordenadas Cartesianas')
subplot(2,1,2)
polar(theta,r)
title('Coordenadas Polares')

7.
theta=linspace(0,3*pi);
r=2.*(1+cos(theta));
[x,y] = pol2cart(theta,r);
subplot(2,1,1)
plot(x,y)
title('Coordenadas Cartesianas')
subplot(2,1,2)
polar(theta,r)
title('Coordenadas Polares')

8.
theta=linspace(0,3*pi);
r=cos(theta);
[x,y] = pol2cart(theta,r);
subplot(2,1,1)
plot(x,y)
title('Coordenadas Cartesianas')
subplot(2,1,2)
polar(theta,r)
title('Coordenadas Polares')
hold on
r1=cos(2.*theta);
[x,y] = pol2cart(theta,r1);
subplot(2,1,1)
plot(x,y)
title('Coordenadas Cartesianas')
subplot(2,1,2)
polar(theta,r1)
title('Coordenadas Polares')
hold on
r2=cos(3.*theta);
[x,y] = pol2cart(theta,r2);
subplot(2,1,1)
plot(x,y)
title('Coordenadas Cartesianas')
subplot(2,1,2)
polar(theta,r2)
title('Coordenadas Polares')
subplot(2,1,1)
hold on

[x,y] = pol2cart(theta,r1);
subplot(2,1,1)
plot(x,y)
subplot(2,1,1)
hold on
[x,y] = pol2cart(theta,r2);
subplot(2,1,1)
plot(x,y)
hold on
[x,y] = pol2cart(theta,r);
subplot(2,1,1)
plot(x,y)
r3=cos(4.*theta);
hold on
[x,y] = pol2cart(theta,r3);
subplot(2,1,1)
hold on
title('Coordenadas Cartesianas')
subplot(2,1,2)
polar(theta,r)
title('Coordenadas Polares')
hold on
title('Coordenadas Cartesianas')
subplot(2,1,2)
polar(theta,r3)
title('Coordenadas Polares')

9.
theta=linspace(0,3*pi);
r=2.*(1+cos(2.*theta));
[x,y] = pol2cart(theta,r);
subplot(2,2,1)
plot(x,y)
title('Coordenadas Cartesianas')
subplot(2,2,2)
polar(theta,r)
title('Coordenadas Polares')
r2=2.*(1+cos(3.*theta));
[x,y] = pol2cart(theta,r2);
subplot(2,2,3)
plot(x,y)
title('Coordenadas Cartesianas')
subplot(2,2,4)
polar(theta,r2)
title('Coordenadas Polares')

Das könnte Ihnen auch gefallen