# The impact on the frequency of adding zero samples and non zero samples

Can someone give me a brief explanation of what is going on in here? I struggle to understand the full differences between the impact on the frequency of added zero samples and adding samples which are not zeroes. (In between the samples).

I learnt this course 100% from the lectures so if I have some misconception regarding the basics, I'd be glad if you could kindly help me understand.

The key points I know so far:

• Adding zero(ed) samples in between the existing ones in the time domain, squizes the frequency domain and adds height to it.
• The squized frequency domain is squized while it's normalised (once we turn it to be periodic with period of 2π).
• Adding non zero(ed) samples to our time domain, we get an added zeroes vector to the end of the frequency domain's period. (Padding zeroes in frequency). Which means that when it's being normalized into 2π period's length, then it's also being squized.

From that we conclude, that adding zero samples and non zero samples do the same exact thing.

[Question:] where is my mistake in the above logic sequence? Where is the difference between the impact of adding zero samples in the time domain on the frequency vs adding non zero samples in the time domain on the frequency?

• what do you mean, exactly, with "non-zeroed samples"? Can you give a formula that describes your output signal in terms of input signal? – Marcus Müller Aug 20 at 14:21
• If input signal is [5,9,4,2,8,2] (N=6, period is of length 6. => [5,9,4,2,8,2,5,9,4,2,8,2,5,9,4,2,8,2,....]) Then output for zero samples is (if we add two zeroes): [5,0,0,9,0,0,4,0,0,2,0,0,8,0,0,2,0,0]. I meant (I guess it's the name of it), upsampling after decimation. And the adding non zero values is just getting a higher resolution. Does it help by any means? I can add this to the question if it makes it clearer. – Vitali Pom Aug 20 at 14:46
• no, doesn't help, sorry. You told be how you're inserting zeros. But I was referring to the sentence "Adding non zero(ed) samples to our time domain". What does that mean? "Just getting a higher resolution" doesn't explain it. – Marcus Müller Aug 20 at 14:58
• I don't want to mislead, just in case I got it wrong. I'll try to describe the way we do it instead of providing example, since the example I'd give might be wrong as a result of my misunderstanding. So, one way to get better resolution as I understand is to do DFT to the time domain, to add N padding zeroes to the frequency domain and then do IDFT. IDFT will have now 2N values which are (probably....) are not zeroes. Does it make sense now? I saw there is a tag 'padding-zeroes' in here, so maybe it sounds familiar to you. – Vitali Pom Aug 20 at 15:10
• It's five o'clock somewhere. You might want to also consider your question in the context of this interpretation of the DFT: dsprelated.com/showarticle/768.php – Cedron Dawg Aug 20 at 22:21