FIR Low-Pass Filter Design with Window Method
Classified in Technology
Written on in
English with a size of 3.63 KB
Load Signal and Parameters
We load the signal we need.
load('tecla_piano.mat');We calculate the sampling period and the number of samples.
Ts = 1/fs; N = length(data); n = 0:N-1; nTs = n * Ts;
Set the number of frequency points which generate the spectrums. We also generate the frequency vector.
nFFT = 2 * fs; f = (0:nFFT-1) * fs/(nFFT-1);
Time Domain Signal Representation
We represent the input signal in the time domain.
figure;
plot(nTs,data);
title('Input signal, TIME domain');
xlabel('nT_{S} (s)');
ylabel('data[nT_{S}] (V)');
grid on;Signal Spectrum Analysis
We calculate and observe the spectrum of the signal. From the magnitude spectrum, we decide that we want to filter the signal up to 1000 Hz and we want to remove it completely from 1500 Hz up.... Continue reading "FIR Low-Pass Filter Design with Window Method" »