Sei sulla pagina 1di 8

INSTITUTO POLITCNICO NACIONAL

ESCUELA SUPERIOR DE INGENIERIA MECANICA Y ELECTRICA


5cv6


Emmanuel Moises Chavez Muiz
Pgina 1



IV Desarrollo
clear all,clf,clc
t=0:1/100:1;
A=1;
f0=2*A/pi;
subplot(4,3,1)
plot(t,f0);
title('Componente de CD')
ylabel('f(t)')
axis([0 1 -1 1.2])

A=1;
cnte=2*A;
c1=exp(j*2*pi*t);
c1c=exp(j*2*pi*t);
c1s=cnte*(c1+c1c)/(-pi*3);
c1r=real(c1s);
c1t=c1r;
subplot(4,3,2)
plot(t,c1t);
grid
title('aproximacin de la fn exp con 1
armonica')
axis([0 1 -1 1.2])

A=1;
f0=2*A/pi;
c1=exp(j*2*pi*t);
c1c=exp(j*2*pi*t);
c1s=cnte*(c1+c1c)/(-pi*3);
c1r=real(c1s);
c2t=f0+c1r;
subplot(4,3,3)
plot(t,c2t);
axis([0 1 -1 1.2])
grid
title('suma de la CD y la 1ra armonica de
la fn exp')

c2=exp(j*2*pi*t*2);
c2c=exp(j*2*pi*t*2);
c2s=cnte*(c2+c2c)/(-pi*15);
c2r=real(c2s);
c3t=c2r;
subplot(4,3,4)
plot(t,c3t);
title('aproximacion de la fn exp de la 2da
armonica')
grid
axis([0 1 -1 1.2])

c4t=c2t+c3t;
subplot(4,3,5)
plot(t,c4t);
title('suma de la 1ra y la 2da armonica de
la fn exp')
grid
axis([0 1 -1 1.2])

c4=exp(j*2*pi*t*3);
c4c=exp(j*2*pi*t*3);
c4s=cnte*(c4+c4c)/(-pi*35);
c4r=real(c4s);
c5t=c4r;
subplot(4,3,6)
plot(t,c5t);
axis([0 1 -1 1.2])
title('aproximacin de la fn exp con 3
armonicas')
grid

c6t=c5t+c4t;
subplot(4,3,7)
plot(t,c6t);
axis([0 1 -1 1.2])
title('suma de 3 armonicas de la fn exp')
grid

c5=exp(j*2*pi*t*4);
c5c=exp(j*2*pi*t*4);
c5s=cnte*(c5+c5c)/(-pi*63);
c5r=real(c5s);
c7t=c5r;
INSTITUTO POLITCNICO NACIONAL
ESCUELA SUPERIOR DE INGENIERIA MECANICA Y ELECTRICA
5cv6


Emmanuel Moises Chavez Muiz
Pgina 2



subplot(4,3,8)
plot(t,c7t);
axis([0 1 -1 1.2])
title('aproximacin de la fn exp con 4
armonicas')
grid

c8t=c7t+c6t;
subplot(4,3,9)
plot(t,c8t);
axis([0 1 -1 1.2])
title('suma de 4 armonicas de la fn exp')
grid

c6=exp(j*2*pi*t*5);
c6c=exp(j*2*pi*t*5);
c6s=cnte*(c6+c6c)/(-pi*99);
c6r=real(c6s);
c9t=c6r;
subplot(4,3,10)



plot(t,c9t);
axis([0 1 -1 1.2])
title('aproximacin de la fn exp con 5
armonicas')
grid

c10t=c9t+c8t;
subplot(4,3,11)
plot(t,c10t);
axis([0 1 -1 1.2])
title('suma de 5 armonicas de la fn exp')
grid

A=1;
y1=A*sin(pi*t);
subplot(4,3,12)
plot(t,y1)
title ('funcion original')
ylabel('f(t)')
grid
axis([0 1 -1 1.2])






















INSTITUTO POLITCNICO NACIONAL
ESCUELA SUPERIOR DE INGENIERIA MECANICA Y ELECTRICA
5cv6


Emmanuel Moises Chavez Muiz
Pgina 3



clear all,clf,clc
t=0:1/100:1;
A=1;
f0=A/2;
subplot(4,3,1)
plot(t,f0);
title('Componente de CD')
ylabel('f(t)')
axis([0 1 -0.5 1])

cnte=j/(2*pi);
c1=exp(j*2*pi*t);
c1c=exp(-j*2*pi*t);
c1s=cnte*(c1-c1c);
c1r=real(c1s);
c1t=c1r;
subplot(4,3,2)
plot(t,c1t);
grid
title('aproximacin de la fn exp con 1
armonica')
axis([0 1 -0.5 1])

A=1;
f0=A/2;
c1=exp(j*2*pi*t);
c1c=exp(-j*2*pi*t);
c1s=cnte*(c1-c1c);
c1r=real(c1s);
c2t=f0+c1r;
subplot(4,3,3)
plot(t,c2t);
axis([0 1 -0.5 1])
grid
title('suma de la CD y la 1ra armonica de
la fn exp')

c2=exp(j*2*pi*t*2);
c2c=exp(-j*2*pi*t*2);
c2s=cnte*(c2-c2c)/2;
c2r=real(c2s);
c3t=c2r;
subplot(4,3,4)


plot(t,c3t);
title('aproximacion de la fn exp de la 2da
armonica')
grid

axis([0 1 -0.5 1])
c4t=c2t+c3t;
subplot(4,3,5)
plot(t,c4t);

title('suma de la 1ra y la 2da armonica de
la fn exp')
grid
axis([0 1 -0.5 1])

c4=exp(j*2*pi*t*3);
c4c=exp(-j*2*pi*t*3);
c4s=cnte*(c4-c4c)/3;
c4r=real(c4s);
c5t=c4r;
subplot(4,3,6)
plot(t,c5t);
axis([0 1 -0.5 1])
title('aproximacin de la fn exp con 3
armonicas')
grid

c6t=c5t+c4t;
subplot(4,3,7)
plot(t,c6t);
axis([0 1 -0.5 1])
title('suma de 3 armonicas de la fn exp')
grid

c5=exp(j*2*pi*t*4);
c5c=exp(-j*2*pi*t*4);
c5s=cnte*(c5-c5c)/4;
c5r=real(c5s);
c7t=c5r;
subplot(4,3,8)
plot(t,c7t);
axis([0 1 -0.5 1])

INSTITUTO POLITCNICO NACIONAL
ESCUELA SUPERIOR DE INGENIERIA MECANICA Y ELECTRICA
5cv6


Emmanuel Moises Chavez Muiz
Pgina 4



title('aproximacin de la fn exp con 4
armonicas')
grid

c8t=c7t+c6t;
subplot(4,3,9)
plot(t,c8t);
axis([0 1 -0.5 1])
title('suma de 4 armonicas de la fn exp')
grid

c6=exp(j*2*pi*t*5);
c6c=exp(-j*2*pi*t*5);
c6s=cnte*(c6-c6c)/5;
c6r=real(c6s);
c9t=c6r;
subplot(4,3,10)
plot(t,c9t);


axis([0 1 -0.5 1])
title('aproximacin de la fn exp con 5
armonicas')
grid

c10t=c9t+c8t;
subplot(4,3,11)
plot(t,c10t);
axis([0 1 -0.5 1])
title('suma de 5 armonicas de la fn exp')
grid

A=1;
y1=A*t;
subplot(4,3,12)
plot(t,y1)
title ('funcion original')
ylabel('f(t)')
grid
axis([0 1 -0.5 1])
















































INSTITUTO POLITCNICO NACIONAL
ESCUELA SUPERIOR DE INGENIERIA MECANICA Y ELECTRICA
5cv6


Emmanuel Moises Chavez Muiz
Pgina 5



































































































INSTITUTO POLITCNICO NACIONAL
ESCUELA SUPERIOR DE INGENIERIA MECANICA Y ELECTRICA
5cv6


Emmanuel Moises Chavez Muiz
Pgina 6



clear all,clf,clc
t=0:1/100:1;
A=1;
f0=A/2;
subplot(4,3,1)
plot(t,f0);
title('Componente de CD')
ylabel('f(t)')
axis([0 1 -0.5 1.2])

cnte=-j/(2*pi);
c1=exp(j*2*pi*t);
c1c=exp(-j*2*pi*t);
c1s=cnte*(c1-c1c);
c1r=real(c1s);
c1t=c1r;
subplot(4,3,2)
plot(t,c1t);
grid
title('aproximacin de la fn exp con
1 armonica')
axis([0 1 -0.5 1.2])

A=1;
f0=A/2;
c1=exp(j*2*pi*t);
c1c=exp(-j*2*pi*t);
c1s=cnte*(c1-c1c);
c1r=real(c1s);
c2t=f0+c1r;
subplot(4,3,3)
plot(t,c2t);
axis([0 1 -0.5 1.2])
grid
title('suma de la CD y la 1ra
armonica de la fn exp')



c2=exp(j*2*pi*t*2);
c2c=exp(-j*2*pi*t*2);
c2s=cnte*(c2-c2c)/2;
c2r=real(c2s);
c3t=c2r;
subplot(4,3,4)
plot(t,c3t);
title('aproximacion de la fn exp de
la 2da armonica')
grid
axis([0 1 -0.5 1.2])

c4t=c2t+c3t;
subplot(4,3,5)
plot(t,c4t);
title('suma de la 1ra y la 2da
armonica de la fn exp')
grid
axis([0 1 -0.5 1.2])

c4=exp(j*2*pi*t*3);
c4c=exp(-j*2*pi*t*3);
c4s=cnte*(c4-c4c)/3;
c4r=real(c4s);
c5t=c4r;
subplot(4,3,6)
plot(t,c5t);
axis([0 1 -0.5 1.2])
title('aproximacin de la fn exp con
3 armonicas')
grid

c6t=c5t+c4t;
subplot(4,3,7)
plot(t,c6t);
axis([0 1 -0.5 1.2])

INSTITUTO POLITCNICO NACIONAL
ESCUELA SUPERIOR DE INGENIERIA MECANICA Y ELECTRICA
5cv6


Emmanuel Moises Chavez Muiz
Pgina 7



title('suma de 3 armonicas de la fn
exp')
grid

c5=exp(j*2*pi*t*4);
c5c=exp(-j*2*pi*t*4);
c5s=cnte*(c5-c5c)/4;
c5r=real(c5s);
c7t=c5r;
subplot(4,3,8)
plot(t,c7t);
axis([0 1 -0.5 1.2])
title('aproximacin de la fn exp con
4 armonicas')
grid

c8t=c7t+c6t;
subplot(4,3,9)
plot(t,c8t);
axis([0 1 -0.5 1.2])
title('suma de 4 armonicas de la fn
exp')
grid

c6=exp(j*2*pi*t*5);
c6c=exp(-j*2*pi*t*5);
c6s=cnte*(c6-c6c)/5;
c6r=real(c6s);
c9t=c6r;
subplot(4,3,10)
plot(t,c9t);
axis([0 1 -0.5 1.2])
title('aproximacin de la fn exp con
5 armonicas')
grid

c10t=c9t+c8t;


subplot(4,3,11)
plot(t,c10t);
axis([0 1 -0.5 1.2])
title('suma de 5 armonicas de la fn
exp')
grid

A=1;
y1=-A*t+A;
subplot(4,3,12)
plot(t,y1)
title ('funcion original')
ylabel('f(t)')
grid
axis([0 1 -0.5 1.2])






















INSTITUTO POLITCNICO NACIONAL
ESCUELA SUPERIOR DE INGENIERIA MECANICA Y ELECTRICA
5cv6


Emmanuel Moises Chavez Muiz
Pgina 8

Potrebbero piacerti anche