Documentos de Académico
Documentos de Profesional
Documentos de Cultura
%Tercera componente
y3=-(cn/3)*sin(6*pi*t);
subplot(4,4,6)
plot(t,y3)
title('f3')
xlabel('Tiempo')
ylabel('f(t)')
grid
axis([-0.5 1.5 -0.5 1.5])
%SUMA DE FUNDAMENTAL+f2+f3
yt3=yt1+y3;
subplot(4,4,7)
plot(t,yt3)
title('Fundamental+f2+f3')
xlabel('Tiempo')
ylabel('f(t)')
grid
axis([-0.5 1.5 -0.5 1.5])
%CUARTA COMPONENTE y4
y4=(-cn/4)*sin(8*pi*t);
subplot(4,4,10)
plot(t,y4)
title('f4')
xlabel('Tiempo')
ylabel('f(t)')
grid
axis([-0.5 1.5 -0.5 1.5])
%SUMA DE FUNDAMENTAL+f2+f3+f4
yt4=yt3+y4;
subplot(4,4,11)
plot(t,yt4)
title('Fundamental+f3+f2+f4')
xlabel('Tiempo')
ylabel('f(t)')
grid
axis([-0.5 1.5 -0.5 1.5])
%QUINTA COMPONENTE f5
y5=(-cn/5)*sin(10*pi*t);
subplot(4,4,14)
plot(t,y5)
title('f5')
xlabel('Tiempo')
ylabel('f(t)')
grid
axis([-0.5 1.5 -0.5 1.5])
%SUMA DE FUNDAMENTAL f2+f3+f4+f5
yt5=yt4+y5;
subplot(4,4,15)
plot(t,yt5)
title('Fundamental f2+f3+f4+f5')
xlabel('Tiempo')
ylabel('f(t)')
grid
axis([-0.5 1.5 -0.5 1.5])
%ORIGINAL
x=A*t;
subplot(4,4,16)
plot(t,x)
title('Original')
xlabel('Tiempo')
ylabel('f(t)')
grid
axis([-0.5 1.5 -0.5 1.5])
yt1=y1+y2;
%Se divide la pantalla en 4x4 y se coloca la grfica en la posicin 3
subplot(4,4,3)
plot(t,yt1)
title('Fundamental+f2')
xlabel('Tiempo')
ylabel('f(t)')
grid
axis([-4.5 4.5 -0.8 4.5])
%TERCERA COMPONENTE y3
y3=-(cn/3)*sin(6*pi*t);
%Se divide la pantalla en 4x4 y se coloca la grfica en la posicin 6
subplot(4,4,6)
plot(t,y3)
title('f3')
xlabel('Tiempo')
ylabel('f(t)')
grid
axis([-4.5 4.5 -0.8 4.5])
%SUMA DE FUNDAMENTAL+f2+f3
yt3=yt1+y3;
%Se divide la pantalla en 4x4 y se coloca la grfica en la posicin 7
subplot(4,4,7)
plot(t,yt3)
title('Fundamental+f2+f3')
xlabel('Tiempo')
ylabel('f(t)')
grid
axis([-4.5 4.5 -0.8 4.5])
%CUARTA COMPONENTE y4
y4=(-cn/4)*sin(8*pi*t);
%Se divide la pantalla en 4x4 y se coloca la grfica en la posicin 10
subplot(4,4,10)
plot(t,y4)
title('f4')
xlabel('Tiempo')
ylabel('f(t)')
grid
axis([-4.5 4.5 -0.8 4.5])
%SUMA DE FUNDAMENTAL+f2+f3+f4
yt4=yt3+y4;
%Se divide la pantalla en 4x4 y se coloca la grfica en la posicin 11
subplot(4,4,11)
plot(t,yt4)
title('Fundamental+f3+f2+f4')
xlabel('Tiempo')
ylabel('f(t)')
grid
axis([-4.5 4.5 -0.8 4.5])
%QUINTA COMPONENTE
yt1=y1+y2;
subplot(4,4,3)
plot(t,yt1)
title('Fundamental+f2')
ylabel('f(t)')
xlabel('Tiempo')
grid
%TERCERA COMPONENTE y3
%Se definen las constantes an2 y bn2, de la Serie Trigonomtrica de
%Fourier para la tercera componente, donde n=3
an2=((0.79*2)/(1+((4*3*pi).^2)));
bn2=((0.79*8*pi*3)/(1+((4*3*pi).^2)));
%Tercera componente
y3=an2*(cos(4*3*pi*t))+bn2*(sin(4*3*pi*t));
subplot(4,4,6)
plot(t,y3)
title('f3')
xlabel('Tiempo')
ylabel('f(t)')
grid
%SUMA DE FUNDAMENTAL+f2+f3
yt3=yt1+y3;
subplot(4,4,7)
plot(t,yt3)
title('Fundamental+f2+f3')
xlabel('Tiempo')
ylabel('f(t)')
grid
%CUARTA COMPONENTE y4
%Se definen las constantes an3 y bn3, de la Serie Trigonomtrica de
%Fourier para la cuarta componente, donde n=4
an3=((0.79*2)/(1+((4*4*pi).^2)));
bn3=((0.79*8*pi*4)/(1+((4*4*pi).^2)));
%Cuarta componente
y4=an2*(cos(4*4*pi*t))+bn2*(sin(4*4*pi*t));
subplot(4,4,10)
plot(t,y4)
title('f4')
xlabel('Tiempo')
ylabel('f(t)')
grid
%SUMA DE FUNDAMENTAL+f2+f3+f4
yt4=yt3+y4;
subplot(4,4,11)
plot(t,yt4)
title('Fundamental+f2+f3+f4')
ylabel('f(t)')
grid
%QUINTA COMPONENTE y5
%Se definen las constantes an4 y bn4, de la Serie Trigonomtrica de
%Fourier para la quinta componente, donde n=5
an5=((0.79*2)/(1+((4*5*pi).^2)));
bn5=((0.79*8*pi*5)/(1+((4*5*pi).^2)));
%Quinta componente
y5=an2*(cos(4*5*pi*t))+bn2*(sin(4*5*pi*t));
subplot(4,4,14)
plot(t,y5)
title('f5')
xlabel('Tiempo')
ylabel('f(t)')
grid
%SUMA DE FUNDAMENTAL f2+f3+f4+f5
yt5=yt4+y5;
subplot(4,4,15)
plot(t,yt5)
title('Fundamental f2+f3+f4+f5')
ylabel('f(t)')
grid
%FUNCIN ORIGINAL f(t), representacin original
x=exp(-t);
subplot(4,4,16)
plot(t,x)
title('Original')
xlabel('Tiempo')
ylabel('f(t)')
grid
axis([-0.01 0.51 -0.01 1.05])
ylabel('f(t)')
xlabel('Tiempo')
grid
%Tercera componente
%Se definen las constantes an2 y bn2
an2=((0.79*2)/(1+((4*3*pi).^2)));
bn2=((0.79*8*pi*3)/(1+((4*3*pi).^2)));
%Tercera componente
y3=an2*(cos(4*3*pi*t))+bn2*(sin(4*3*pi*t));
%Se divide la ventana en 4x4 y se coloca la grfica en el sexto recuadro
subplot(4,4,6)
plot(t,y3)
title('f3')
xlabel('Tiempo')
ylabel('f(t)')
grid
%SUMA DE FUNDAMENTAL+f2+f3
yt3=yt1+y3;
%Se divide la ventana en 4x4 y se coloca la grfica en el sptimo
recuadro
subplot(4,4,7)
plot(t,yt3)
title('Fundamental+f2+f3')
xlabel('Tiempo')
ylabel('f(t)')
grid
%CUARTA COMPONENTE y4
%Se definen las constantes an3 y bn3
an3=((0.79*2)/(1+((4*4*pi).^2)));
bn3=((0.79*8*pi*4)/(1+((4*4*pi).^2)));
%Cuarta componente
y4=an3*(cos(4*4*pi*t))+bn3*(sin(4*4*pi*t));
%Se divide la ventana en 4x4 y se coloca la grfica en el dcimo recuadro
subplot(4,4,10)
plot(t,y4)
title('f4')
xlabel('Tiempo')
ylabel('f(t)')
grid
%SUMA DE FUNDAMENTAL+f2+f3+f4
yt4=yt3+y4;
%Se divide la ventana en 4x4 y se coloca la grfica en el onceavo
recuadro
subplot(4,4,11)
plot(t,yt4)
title('Fundamental+f2+f3+f4')
ylabel('f(t)')
grid
%QUINTA COMPONENTE f5
%Se definen las constantes an4 y bn4
an4=((0.79*2)/(1+((4*5*pi).^2)));
bn4=((0.79*8*pi*5)/(1+((4*5*pi).^2)));
%Quinta componente
y5=an4*(cos(4*5*pi*t))+bn4*(sin(4*5*pi*t));
%Se divide la ventana en 4x4 y se coloca la grfica en el catorceavo
recuadro
subplot(4,4,14)
plot(t,y5)
title('f5')
xlabel('Tiempo')
ylabel('f(t)')
grid
%SUMA DE FUNDAMENTAL f2+f3+f4+f5
yt5=yt4+y5;
%Se divide la ventana en 4x4 y se coloca la grfica en el quinceavo
recuadro
subplot(4,4,15)
plot(t,yt5)
title('Fundamental f2+f3+f4+f5')
ylabel('f(t)')
grid
%ORIGINAL
t1=0:0.001:0.5;
x=exp(-t1);
%Se divide la ventana en 4x4 y se coloca la grfica en el dieciseisavo
recuadro
subplot(4,4,16)
plot(t1,x)
title('Original')
xlabel('Tiempo')
ylabel('f(t)')
grid
axis([-0.01 0.51 -0.01 1.05])
f(t)
0.8
0.6
0.4
0.2
0
-0.5
0.5
1.5
t
2.5
3.5