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.

5
  • $\begingroup$ (I'm sorry, I'm a total beginner and this was needed to be done as a part of a bigger project) While designing the filter, I definitely set the window sizes to be 5,10,13 and 15 and I don't know why its doing N/2 instead of N-1/2. Any inputs on how I can resolve this? edit: Is is possible that while specifying the window size in Matlab for this, it is automatically up-scaling the window size to +1 i.e. 5 to 6? hence giving 6-1/2=2.5 $\endgroup$ Commented Jul 22, 2020 at 11:53
  • $\begingroup$ @varungupta: You could add your code to the question. Then it's easier to know what's going on. $\endgroup$ Commented Jul 22, 2020 at 12:13
  • 1
    $\begingroup$ Added the Matlab implementations as suggested. $\endgroup$ Commented Jul 22, 2020 at 12:24
  • 2
    $\begingroup$ @varungupta: It says "Filter order: 15", which means that the filter length = order+1=16, and the corresponding group delay is 15/2=7.5. 'Filter order' shouldn't be the same as 'window size', but window size = filter order + 1. $\endgroup$ Commented Jul 22, 2020 at 12:38
  • $\begingroup$ Understood! Thank you so much your help :) $\endgroup$ Commented Jul 22, 2020 at 12:39