I'm having two zero padded signals in Matlab
h_1[n] = {...,0,0,1,2,1,0,0,...}
h_2[n] = {...,0,1,0,2,0,1,0,...}
and below you can see their FFT plots:
% N1 and N2 are just the lengths of h1 and h2.
H1 = fft(h1, N1);
H2 = fft(h2, N2);
% ...
figure;
from = -floor(length(H1)/2);
to = floor(length(H1)/2);
stem(from:to, abs(H1));
My question is how one can decide whether those are low-,high- or band-pass filters.
I know FFT decomposes my functions of time, here h_1[n]
and h_2[n]
, into the frequencies of which they are made up: H_1[k]
and H_2[k]
if I got that right but so far those plots tell me almost nothing.
So how does one interpret those plots? I don't know why we had to add more zeros to h_2[n]
, could this be to have a higher sampling rate?
Thank you for any explanation!