in my code I generated a dirac comb and its FFT with:
Y = fft(y);
P2 = abs(Y/L);
f = (fs*(-L/2:((L/2)-1))/L);
title(' Amplitude Spectrum of S(t) FFT')
and it generates the following plot:
Signal processing says:
So I wonder why the amplitudes in the frequency spectrum have this stair form and their magnitudes are way less than in the time domain.
Would be more than happy if s.o. could help me with that.