Documentos de Académico
Documentos de Profesional
Documentos de Cultura
A; en 0 ≤ t ≤ π
(t) = {
−A; en π ≤ t ≤ 2π
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
Figura 1.0
SOLUCION:
Dado que f(t) = función par cuya serie trigonométrica de Fourier está dada por: 𝑓(𝑡)=
(4𝐴𝜋)[cos𝜔𝑡−(13)cos3𝜔𝑡+(15)cos5𝜔𝑡−(17)cos7𝜔𝑡+(1/9)cos (9𝜔𝑡)]
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
Figura 1.1
f(𝑡)= (4𝐴𝜋)Σ(1𝑛)sin(𝑛𝜋2)cos𝑛𝜔𝑡
Desarrolle mediante la instrucción de control de flujo FOR del Matlab:
SOLUCIÓN:
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
Figura 1.2
CUESTIONARIO:
Dada la serie:
f(𝑡)=𝐴2−Σ(1𝑛)sin(𝑛𝜔0𝑡). 𝑠𝑖 (𝑡)=𝐴𝑡 𝑒𝑛 (0,1).
Figura 2.0
fs=100;
t=(0:100)/fs;
w=2*pi;
A=4;
f=(A/(2*j))*(exp(j*pi*t)-exp(-j*pi*t));
plot(t,f,'b');
xlabel('tiempo(seg)')
ylabel('ampitud')
grid
Figura 2.1
Fs=100;
t=(-100:100)/Fs;
w=1;
A=2;
f=0
for n=0:100;
f=f+(((4*A)*cos((2*n+1)*w*t)/((2*n+1)*pi)^2));
end;
plot(t,f,'r')
xlabel('t(seg)')
ylabel('AMPLITUD')
grid
Figura 2.2
Fs=100;
t=(0:100)/Fs;
w=2*pi;
A=1;
f=0;
for n=-300:300;
f=f+(A/(2*pi*n*j+2))*0.865*exp(2*pi*n*t*j);
end;
plot(t,f,"r")
xlabel('tiempo (seg)')
ylabel('Amplitud')
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)¦')
Figura 2.4
Figura 2.5
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)¦')
Figura 2.6
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)
Figura 2.7
Figura 2.8
Figura 2.9
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: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))
Figura 2.10
Figura 2.11
5. Desarrolle la transformada de Fourier de la suma de tres señales senoidales:
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)]));
Figura 2.12
Figura 2.13
6. Desarrolle la gráfica de la transformada de la función de muestreo
Sa(x):
fplot('5*sin(x)./x',[-30 30 -.2 6]);
title('Fplot of f(x)=5.sin(x)/x')
xlabel('x')
ylabel('f(x)')
Figura 2.15
CUESTIONARIO FINAL
N=1000;
t=linspace(-30,30,N);
f=sin(t)./t;
figure(1)
plot(t,f,"b")
axis([-30 30 0 1.5])
title('Funcion Sampling');
xlabel('tiempo)'),
ylabel('amplitud'),
grid
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),"r")
axis([0 3 0 3.5]);
xlabel('Frecuencia'),
ylabel('|F(W)|');
Figura 2.16
Figura 2.17
t=0:0.01:3;
w=2*pi;
A=5;
f=A*cos(w*t);
figure (1)
plot(t,f,"g")
title('Función coseno')
xlabel('tiempo')
ylabel('f(t)')
L=length(f);
NFFT = 2^nextpow2(L);
Y = fft(f,NFFT)/L;
f = Fs/2*linspace(0,1,NFFT/2+1);
figure (2)
plot(f,2*abs(Y(1:NFFT/2+1)))
xlabel('Frecuencia')
ylabel('|Y(f)|')
Figura 2.18
Figura 2.19
t=0:0.01:3;
w=2*pi;
A=5;
f=A*sin(w*t);
figure (1)
plot(t,f)
xlabel('tiempo (seg)')
ylabel('f(t)')
L=length(f);
NFFT = 2^nextpow2(L);
Y = fft(f,NFFT)/L;
f = Fs/2*linspace(0,1,NFFT/2+1);
figure (2)
plot(f,2*abs(Y(1:NFFT/2+1)))
ylabel('|Y(f)|')
Figura 2.20
Figura 2.21
%Siguiendo el procedimiento de
m=[0,1,2,3];
Xm=[2,3,4,5];
%Hallamos su FFT
Xk=fft(Xm);
Xmag=abs(Xk);
Xphase=angle(Xk);
subplot(2,2,1)
plot(m,Xmag)
xlabel('tiempo')
ylabel('magnitud')
axis([0,5,0,23]);
subplot(2,2,2)
stem(m,Xmag)
xlabel('tiempo')
ylabel('magnitud')
subplot(2,2,3)
stem(m,Xphase)
xlabel('tiempo')
ylabel('fase')
Figura 2.22