Anda di halaman 1dari 5

CURSO: PROCESAMIENTO DIGITAL DE SEALES

LABORATORIO N1
Tema : Generacion De Seales En Tiempo Y Frecuencia (FFT)- Teorema De Muestreo
Introduccion MATLAB

Informe previo
MUESTREO
TEOREMA DE MUESTREO
f1=1e3; % frecuencia de la seal 1khz, frecuencia fundamental
fs=2.1*f1; % nyquist frecuencia de muestreo lo esta calculando a 2100 muestras por segundo
t=0:1/fs:10/f1; %vision en el tiempo
s1=1*cos(2*pi*f1*t);
subplot(211)
plot(t,s1)
%mundo observable desde -fs/2 hasta fs/2
f=linspace(-fs/2,fs/2,length(s1));
subplot(212)
plot(f,fftshift(abs(fft(s1))))
t=0:1/fs:50/f1;
s1=1*cos(2*pi*f1*t);
figure
subplot(211)
plot(t,s1)
subplot(212)
f=linspace(-fs/2,fs/2,length(s1));
plot(f,fftshift(abs(fft(s1))))
t=0:1/fs:512/f1;
s1=1*cos(2*pi*f1*t);
figure
f=linspace(-fs/2,fs/2,length(s1));
subplot(211)
plot(t,s1)
subplot(212)
plot(f,fftshift(abs(fft(s1))))
//////////////////////////
figure
f1=1e3; % frecuencia de la seal 1khz, frecuencia fundamental
fs=1.5*f1; % nyquist frecuencia de muestreo lo esta calculando a 2100 muestras por segundo
t=0:1/fs:10/f1; %vision en el tiempo
s1=1*cos(2*pi*f1*t);
subplot(211)
plot(t,s1)
%mundo observable desde -fs/2 hasta fs/2
f=linspace(-fs/2,fs/2,length(s1));
subplot(211)
plot(t,s1)

%mundo observable desde -fs/2 hasta fs/2


subplot(212)
plot(f,fftshift(abs(fft(s1))))
figure
t=0:1/fs:700/f1;
s1=1*cos(2*pi*f1*t);
f=linspace(-fs/2,fs/2,length(s1));
subplot(211)
plot(t,s1)
subplot(212)
plot(f,fftshift(abs(fft(s1))))

Anda mungkin juga menyukai