Professional Documents
Culture Documents
PRACTICA Nº 2
TEMA 1: DESARROLLO DE LA SERIE DE FOURIER
I. OBJETIVO:
II. PROCEDIMIENTO:
𝐴, 𝑒𝑛 0 ≤ 𝑡 ≤ 𝜋
𝑓(𝑡) = {
−𝐴, 𝑒𝑛 𝜋 ≤ 𝑡 ≤ 2𝜋
SOLUCION
La función f(t) es una función impar cuya serie trigonométrica de Fourier es:
4𝐴 1 1
𝑓(𝑡) = ( ) [sin 𝜔𝑡 + ( ) sin 3𝜔𝑡 + ( ) sin 5𝜔𝑡 + ⋯ ]
𝜋 3 5
Programando para mostrar la gráfica de la serie de Fourier:
SOLUCION:
Dado que f(t) = función par cuya serie trigonométrica de Fourier esta dada por:
4𝐴 1 1 1
𝑓(𝑡) = ( ) [cos 𝜔𝑡 − ( ) cos 3𝜔𝑡 + ( ) cos 5𝜔𝑡 − ( ) cos 7𝜔𝑡 + (1/9)cos(9𝜔𝑡)]
𝜋 3 5 7
4𝐴 1 𝑛𝜋
𝑓(𝑡) = ( ) ∑ ( ) sin ( ) cos 𝑛𝜔𝑡
𝜋 𝑛 2
SOLUCION:
Dada la serie:
𝐴 1
𝑓(𝑡) = − ∑ ( ) sin(𝑛𝜔0 𝑡) . 𝑠𝑖 𝑓(𝑡) = 𝐴𝑡 𝑒𝑛 (0,1).
2 𝑛
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)
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)
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)
4𝐴
f(t)=∑ cos(nWt) ; n=impar d ela onda triangular.
(𝑛𝜋)²
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
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)
I. OBJETIVO:
II. PROCEDIMIENTO:
2𝜋
𝑋(𝑘) = ∑ 𝑋(𝑛) 𝑒 −𝑗 ( ) 𝑛𝑘 𝐷𝑜𝑛𝑑𝑒 𝑘 = 0,1,2,3, …
4
4. Para la suma de dos señales senoidales contaminado con ruido desarrolle la gráfica en el dominio
del tiempo y su respectiva grafica 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;
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)|')
a).function directa
>> N=128;
>> A=2;
>> w=2*pi;
>> f=A*sin(w*t);
>> figure(1)
>> plot(t,f)
>> xlabel('Time,seg'),ylabel('f(t)'),grid
b) Transformada de furrier
>> 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)|')
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: