Está en la página 1de 18

UNIVERSIDAD NACIONAL MAYOR

DE SAN MARCOS
Faculta de Ingeniería Electrónica, Eléctrica y
Telecomunicaciones

Informe Final N°2

TEMA:

Desarrollo de la serie y transformada rápida de Fourier

DOCENTE:

Ing. Sixto Llosa

INTEGRANTES:

Levano Vilca Willy Paolo 15190014

CICLO:

Séptimo

2019 – I
Informe Final N°01

Problema 1:

Fs=1000;
t= (1:100)/Fs;
w=2*pi*10;
f=(8/pi)*(sin(w*t)+(1/3)*sin(3*w*t)+(1/5)*sin(5*w*t)+(1/7)*sin(7*w*t)
+(1/9)*sin(9*w*t);
plot(t,f)
grid

Problema 2:

Fs=1000;
t=(1:100)/Fs;
w=2*pi*10;
f=(8/pi)*(cos(w*t)-(1/3)*cos(3*w*t)+(1/5)*cos(5*w*t)-(1/7)*cos(7*w*t)
+(1/9)*cos(9*w*t)-(1/11)*cos(11*w*t)+(1/13)*cos(13*w*t));
plot(t,f)
grid
Problema 3:

Fs=100;
t=(-100:100)/Fs;
w=2*pi;
A=2;
f=0
for n=1:1000;
f=f+(4*A/(n*pi))*(sin(n*0.5*pi))*cos(n*w*t);
end;
plot(t,f)
xlabel('t(seg)')
ylabel('AMPLITUD')
title('FUNCION PAR ONDA CUADRADA')
grid
CUESTIONARIO FINAL TEMA 1

1. Dada la expresión de la serie de Fourier trigonométrica, desarrolle la gráfica de f


(t). Usando el criterio del problema 3.

Dada la serie:

A 1
f (t )=
2
−∑
n ()
sin ( n ω0 t ) . si f (t )= At en ( 0,1 ) .

Para una mejor visualización de la gráfica trabajaremos de−1 a1


Fs=100;
t=(-100:100)/Fs;
w=2*pi;
A=1;
f=0;
for n=1:1000;
f=0.5-(f+(sin(n*w*pi)));
end;
plot(t,f)

FUNCION ONDA DIENTE DE SIERRA


3

2.5

1.5
AMPLITUD

0.5

-0.5

-1
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
t(seg)
2. Desarrolle la exponencial de Fourier, si f (t )= A sin ( πt ) en el intervalo (0,1).
Grafique la S.E.F.

FUNCION PAR SENO


0.5

0.4

0.3

0.2

0.1
AMPLITUD

-0.1

-0.2

-0.3

-0.4

-0.5
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
t(seg)
3. programe en Matlab la siguiente serie trigonométrica.

4A
f(t)=∑ cos(nWt) ; n=impar d ela onda triangular.
( nπ )²

fs=100;
t=(-100:100)/fs;
w=2*pi;
A=2;
f=0;
for n=0:1000;
f=f+((2*(n+1)*pi)^2)\(4*A)*cos(n*w*t);
end;
plot(t,f)
xlabel('t(seg)')
ylabel('AMPLITUD')
title('FUNCION TRIGONOMETRICA IMPAR')
grid
4. grafique la serie exponencial de FOURIER DE LA FUNCION f (t)=A e−2 t en t=
[0,1].

FUNCION EXPONENCIAL
8

4
AMPLITUD

-2

-4
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
t(seg)
TEMA 2: DESARROLLO DE LA TRANSFORMADA RAPIDA DE FOURIER
EJERCICIO 1
N=128;
t=linspace(0,3,N);
f=2*exp(-20*t);
figure(1)
plot(t,f)
xlabel('Time,seg'),ylabel('f(t)'),grid
axis([0 0.3 0 2]);
Ts=t(2)-t(1);
Ws=2*pi/Ts;
F=fft(f);
Fp=F(1:N/2+1)*Ts;
W=Ws*(0:N/2)/N;
figure(2)
plot(W,abs(Fp),'+')
xlabel('Frequency,Rad/s'),ylabel('|F(W)|')

EJERCICIO 2
N=128;
t=linspace(0,3,N);
Ts=t(2)-t(1);
Ws=2*pi/Ts;
W=Ws*(0:N/2)/N
Fa=2./(20+j*W);
figure(3)
plot(W,abs(Fa))
xlabel('Frequency,Rad/s'),ylabel('|F(W)|')
EJERCICIO 3
m=[0,1,2,3,4,5];
Xn=[1,2,3,4,5,6];
Xk=fft(Xn)
Xmag=abs(Xk);
Xphase=angle(Xk);
figure(1)
plot(m,Xmag),axis([0 5 0 23]);
figure(2)
stem(m,Xmag)
figure(3)
stem(m,Xphase)
EJERCICIO 4
t=0:0.001:0.6;
x=sin(2*pi*50*t)+sin(2*pi*120*t);
y=x+2*randn(size(t));
figure(4)
plot(y(1:50))
Y=fft(y,512);
Pyy=Y.*conj(Y)/512;
f=1000*(0:255)/512;
figure(5)
plot(f,Pyy(1:256))
EJERCICIO 5
Fs=100;
t=(1:100)/Fs;
s1=5*sin(2*pi*t*5);s2=10*sin(2*pi*t*15);s3=7*sin(2*pi*t*30);
s=s1+s2+s3;
figure(1)
plot(t,s);
S=fft(s,512);
w=(0:255)/256*(Fs/2);
figure(2)
plot(w,abs([S(1:256)]));

EJERCICIO 6
fplot('5*sin(x)./x',[-30 30 -.2 6])
title('Fplot of f(x)=5.sin(x)/x')
xlabel('x')
ylabel('f(x)')
CUESTIONARIO FINAL TEMA II

1. Desarrolle la transformada rápida de Fourier de la función Sa(t).


fplot('5*sin(t)./t',[-30 30 -.2 6])
title('Fplot of f(t)=5.sin(t)/t')
xlabel('t')
ylabel('f(t)')

jωt − jωt
2. Si F(t )=( e + e )/2. Determine su transformada rápida de Fourier.

t=-0.25:0.001:0.25;
w=2*pi;
f=(exp(j*w*t)+exp(-j*w*t))/2;
figure(1)
plot(t,f
N=128;
axis([0 0.2 0 2]);
Ts=t(2)-t(1);
Ws=2*pi/Ts;
F=fft(f);
Fp=F(1:N/2+1)*Ts;
W=Ws*(0:N/2)/N;
figure(1)
plot(W,abs(Fp),'+')
xlabel('Frequency,Rad/s'),ylabel('|F(W)|')

3. Dado F(t )= A sin ωt . Desarrolle su transformada rápida de Fourier.

a) funcion directa
N=128;
A=2;
w=2*pi;
f=A*sin(w*t);
figure(1)
plot(t,f)
xlabel('Time,seg'),ylabel('f(t)'),gri
d
b) Transformada de Fourier
t=-0.25:0.001:0.25;
A=2;
w=2*pi;
f=A*sin(w*t);
subplot(2,1,1);
plot(t,f);
F=fft(f);
Fp=F(1:N/2+1)*Ts;
W=Ws*(0:N/2)/N;
figure(3)
plot(W,abs(Fp),'+')
xlabel('Frecueny,rad/s'),ylabel('|F(W)|')

4. Desarrolle la transformada de Fourier de la señal muestreada m=[0,1,2,3] y


Xm=[2,3,4,5].
m=[0,1,2,3];
Xm=[2,3,4,5];
Xk=fft(Xm);
Xmag=abs(Xk);
Xphase=angle(Xk);
figure(1)
plot(m,Xmag),axis([0 5 0 25]);
figure(2)
stem(m,Xmag)
figure(3)
stem(m,Xphase)
CONCLUSIONES
 En esta experiencia hemos podido hacer uso de la transformada
rápida de Fourier a través del software Matlab.
 Hemos analizado la transformada trigonométrica y exponencial de
Fourier y así mismo lograr su gráfica a través de Matlab.
 Hemos sincronizada las diferentes funciones a través del tiempo,
teniendo en cuenta señales periódicas que se generan a través del
Matlab.
 Para poder expresar la serie trigonométrica y exponencial de Fourier
realizamos un análisis teórico para obtener la forma expresada
matemáticamente y luego digitarla en Matlab.

Fotos:

También podría gustarte