Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Infor Final 2
Infor Final 2
DE SAN MARCOS
Faculta de Ingeniería Electrónica, Eléctrica y
Telecomunicaciones
TEMA:
DOCENTE:
INTEGRANTES:
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
Dada la serie:
A 1
f (t )=
2
−∑
n ()
sin ( n ω0 t ) . si f (t )= At en ( 0,1 ) .
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.
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
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)|')
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)|')
Fotos: