Documentos de Académico
Documentos de Profesional
Documentos de Cultura
LABORATORIO Nº4
PROFESOR DEL CURSO A CARGO
JIMENEZ TINTAYA CESAR
ESTUDIANTE
TURIN ROBLES JEAN DEYBY (14130104)
ESCUELA ACADEMICA-PROFESIONAL
FISICA
SEMESTRE
2019-II
function s=s(t)
s=1.*(t>=0);
end
function g1=s1(t)
g1=s1(t+0.5)-s1(t-0.5);
end
a)
t=-2:0.001:2;
f=g1(t/2)-g1(t);
plot(t,f), grid on, zoom xon,
axis equal
b)
t=-5:0.001:5;
f=5.*g1(t-1)-g1(t+1);
plot(t,f), grid on, zoom xon,
axis equal
c) Hallar la transformada de Fourier, usar Matlab.
t=-1:0.001:3;
y=(t+1).*(t>=-1&t<1)+(3-t).*(t>=1&t<3)-
[(t+1).*(t>0&t<1)+(3-t).*(t>=1&t<2)]+1.*(t>0&t<2);
trf1=fftshift(fft(y));
plot(abs(trf1)), grid on, zoom xon
2.
y = (-t-2).*(t>=-2&t<-1)+(-1).*(t>=-1&t<0)+(t-1).*(t>=0&t<2)+(3t).*(t>=2&t<3);
Su transformada seria:
t=-2:0.001:3;
y = (-t-2).*(t>=-2&t<-1)+(-1).*(t>=-1&t<0)+(t-1).*(t>=0&t<2)+(3t).*(t>=2&t<3);
trf1=fftshift(fft(y));
plot(abs(trf1)), grid on, zoom xon
a.
1 1/2
𝛿(𝑤) = 2𝜋 ∫−1/2 𝑒 −𝑗𝑤𝑡 𝜕𝑡
𝜔
sin( )
𝛿(𝑤) = 2
𝜋𝜔
sin(𝜔𝑇⁄2)
Ϝ[𝑓(𝑡)] = 2
𝜔
b.
x(n)= 2, n: par
1, n: impar
∞
𝑓(𝑡) = ∑ 𝛿(𝑡 − 𝑛)
𝑛=−∞
∞ ∞
1 (2𝑛 + 1)𝜋
Ϝ{𝑓(𝑡)} = ∑ 2𝜋𝛿 (𝜔 − ) + ∑ 2𝜋𝛿(𝜔 − 𝑛𝜋)
2 2
𝑛 𝑛
−𝒕⁄ )
a) 𝒇(𝒕) = 𝒕𝟐 𝒆( 𝝉
De la propiedad:
−𝑡⁄ ) 𝑖
Ϝ {𝑒 ( 𝜏 } = √2𝜋𝛿 (𝜔 + )
𝜏
Reemplazando:
𝑖
√2𝜋𝜕 2 𝛿 (𝜔 + 𝜏)
2 (−𝑡⁄𝜏)
Ϝ {𝑡 𝑒 }=
𝜕𝜔 2
−𝑡⁄ ) 𝑖
Ϝ {𝑡 2 𝑒 ( 𝜏 } = −√2𝜋𝛿′′ (𝜔 + )
𝜏
Fs=100;
ts=1/Fs;
t=0:1/Fs:4*2*pi;
y=sin(t)+0.25*sin(10*t);
z=fftshift(fft(y));
f=-Fs/2:1/(8*pi):Fs/2;
plot(f,abs(z)),zoom xon,grid
on, xlim([48 52])
Frecuencia Amplitud
48.42 314.062
49.85 1256.835
50.17 1256.836
51.60 314.062
5. Baje el archivo “datos.txt” de la web (en el enlace de Google Drive), que representa
una señal de audio.
Fs=8000;
y=load('datos.txt');
N=length(y)
N = 76709
Fs=8000;
y=load('datos.txt');
N=length(y);
t=0:1/Fs:(N-1)/Fs;
ans = 9.5885
Fs=8000;
y=load('datos.txt');
N=length(y);
t=0:1/Fs:(N-1)/Fs;
mean(y)
ans = 7.1294e-05
Fs=8000;
y=load('datos.txt');
N=length(y);
t=0:1/Fs:(N-1)/Fs;
plot(t,y), grid on, zoom
xon
e) Graficar el espectro de frecuencias.
Fs=8000;
y=load('datos.txt');
N=length(y);
t=0:1/Fs:(N-1)/Fs
fft1= fftshift (fft(y));
f=-Fs/2:Fs/(N-1):Fs/2;
plot(f,abs(fft1)), grid on, zoom xon
6.
function triang=x(t)
tria=(t+1).*(t>=-1&t<0)+(1-t).*(t>=0&t<1)
end
t=-5:0.05:5;
y=triang(t/2);
trf1= fftshift(fft(y));
plot(abs(trf1)), grid on, zoom xon,
b) La integral que define la TF puede calcularse numéricamente, para cada valor de la
frecuencia, utilizando la suma de Riemann. Para subdominios de T se tiene:
∞
Calcular para T=0.8 y para el rango de frecuencia de 0 a 2 Hz con intervalos de 0.125 Hz,
ejecutando las siguientes sentencias en Matlab:
T=0.8;
n=[-2:2];
f=[0:0.125:2];
X=zeros(size(f));
for i = 1; length(f)
X(i)=sum(T*tria(n*T/2).*exp(-j*2*pi*f(i)*n*T));
end
T=0.08;
n=[-2:2];
f=[0:0.125:2];
X=zeros(size(f));
for i = 1; length(f)
X(i)=sum(T*tria(n*T/2).*exp(-j*2*pi*f(i)*n*T));
end
El resultado de igual manera nos da 17 y los componentes de la matriz son [0.92 0.96 1.0 0.96
0.92].