Anda di halaman 1dari 5

FUNCION EXPONENCIAL APERIODICA

clear all, clf, clc


t=0:0.001: 1;
fo=0.787;
cte=0.787;
c1=exp(j*4*pi*t);
c1c=exp(-j*4*pi*t);
c1s=cte*(c1/(1+j*4*pi))+(c1c/(1-j*4*pi));
c1r=real(c1s);
c1t=fo+c1r;
subplot(4,4,1)
plot(t,c1t)
axis([0 .5 0.5 1])
title('Fundamental')
%-----------------------------------c2=exp(j*8*pi*t);
c2c=exp(-j*8*pi*t);
c2s=cte*(c2/(1+j*8*pi))+(c2c/(1-j*8*pi));
c2r=real(c2s);
c2t=c2r;
subplot(4,4,2)
plot(t,c2t)
axis([0 .5 -.1 .1])
title('2 armonica')
%-----------------------------------c12t=c1t+c2t;
subplot(4,4,3)
plot(t,c12t)
axis([0 .5 0.5 1.1])
title('suma 2 componentes')
%-----------------------------------c3=exp(j*12*pi*t);
c3c=exp(-j*12*pi*t);
c3s=cte*(c3/(1+j*12*pi))+(c3c/(1-j*12*pi));
c3r=real(c3s);
c3t=c3r;
subplot(4,4,6)
plot(t,c3t)
axis([0 .5 -.1 .1])
title('3 armonica')
%-----------------------------------c13t=c12t+c3t;
subplot(4,4,7)
plot(t,c13t)
axis([0 .5 0.5 1.1])
title('suma 3 componentes')

%-----------------------------------c4=exp(j*16*pi*t);
c4c=exp(-j*16*pi*t);
c4s=cte*(c4/(1+j*16*pi))+(c4c/(1-j*16*pi));
c4r=real(c4s);
c4t=c4r;
subplot(4,4,10)
plot(t,c4t)
axis([0 .5 -.1 .1])
title('4 armonica')
%-----------------------------------c14t=c13t+c4t;
subplot(4,4,11)
plot(t,c14t)
axis([0 .5 0.5 1.1])
title('suma 4 componentes')
%-----------------------------------c5=exp(j*20*pi*t);
c5c=exp(-j*20*pi*t);
c5s=cte*(c5/(1+j*20*pi))+(c5c/(1-j*20*pi));
c5r=real(c5s);
c5t=c5r;
subplot(4,4,14)
plot(t,c5t)
axis([0 .5 -.1 .1])
title('5 armonica')
%-----------------------------------c15t=c14t+c5t;
subplot(4,4,15)
plot(t,c15t)
axis([0 .5 0.5 1.1])
title('suma 5 componentes')
%-----------------------------------m=exp(-t)
subplot(4,4,16)
plot(t,m)
axis([0 .5 0 1.1])
title('ORIGINAL "EXPONENCIAL"')

FUNCION EXPONENCIAL PERIODICA


clear all, clf, clc
t=0:0.001: 1;
fo=0.787;
cte=0.787;
c1=exp(j*4*pi*t);
c1c=exp(-j*4*pi*t);
c1s=cte*(c1/(1+j*4*pi))+(c1c/(1-j*4*pi));
c1r=real(c1s);
c1t=fo+c1r;
subplot(4,4,1)
plot(t,c1t)
axis([0 1 0.5 1])
title('Fundamental')
%-----------------------------------c2=exp(j*8*pi*t);
c2c=exp(-j*8*pi*t);
c2s=cte*(c2/(1+j*8*pi))+(c2c/(1-j*8*pi));
c2r=real(c2s);
c2t=c2r;
subplot(4,4,2)
plot(t,c2t)
axis([0 1 -.1 .1])
title('2 armonica')
%-----------------------------------c12t=c1t+c2t;
subplot(4,4,3)
plot(t,c12t)
axis([0 1 0.5 1])
title('suma 2 componentes')
%------------------------------------

c3=exp(j*12*pi*t);
c3c=exp(-j*12*pi*t);
c3s=cte*(c3/(1+j*12*pi))+(c3c/(1-j*12*pi));
c3r=real(c3s);
c3t=c3r;
subplot(4,4,6)
plot(t,c3t)
axis([0 1 -.1 .1])
title('3 armonica')
%-----------------------------------c13t=c12t+c3t;
subplot(4,4,7)
plot(t,c13t)
axis([0 1 0.5 1])
title('suma 3 componentes')
%-----------------------------------c4=exp(j*16*pi*t);
c4c=exp(-j*16*pi*t);
c4s=cte*(c4/(1+j*16*pi))+(c4c/(1-j*16*pi));
c4r=real(c4s);
c4t=c4r;
subplot(4,4,10)
plot(t,c4t)
axis([0 1 -.1 .1])
title('4 armonica')
%-----------------------------------c14t=c13t+c4t;
subplot(4,4,11)
plot(t,c14t)
axis([0 1 0.5 1])
title('suma 4 componentes')
%-----------------------------------c5=exp(j*20*pi*t);
c5c=exp(-j*20*pi*t);
c5s=cte*(c5/(1+j*20*pi))+(c5c/(1-j*20*pi));
c5r=real(c5s);
c5t=c5r;
subplot(4,4,14)
plot(t,c5t)
axis([0 1 -.1 .1])
title('5 armonica')
%-----------------------------------c15t=c14t+c5t;
subplot(4,4,15)

plot(t,c15t)
axis([0 1 0.5 1])
title('suma 5 componentes')
%-----------------------------------m=exp(-t)
subplot(4,4,16)
plot(t,m)
axis([0 1 0 1])
title('ORIGINAL "EXPONENCIAL"')