Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • $\begingroup$ That explains why sinc function is merely an approximation. Thank you. I tried to replicate DTFT plot in above figure but to no avail. Can you provide me with the code? $\endgroup$ Commented Feb 28, 2017 at 8:38
  • $\begingroup$ @KlemenD: I've added the code. You just need to implement the given formula. $\endgroup$ Commented Feb 28, 2017 at 8:47
  • $\begingroup$ I was setting w = 2*pi * linspace(0,fs,500) and w0 = 2*pi*k/N*fs which gave me wrong result. I assume the DTFT formula expects w and w0 being relative frequencies? $\endgroup$ Commented Feb 28, 2017 at 9:33
  • $\begingroup$ @KlemenD: Yes, that's usually what is meant by writing $X(e^{j\omega})$. You also sometimes see $X(e^{j\omega T})$, where $T$ is the sampling interval. In that case, $\omega$ is not normalized. $\endgroup$ Commented Feb 28, 2017 at 9:38