Is it possible to implement an ideal allpass filter in Matlab? The filter response should be like this:

enter image description here

Note: the photo is imaginary (I did it using paint).

  • 2
    $\begingroup$ If the desired phase response is linear, then it depends on the slope of the phase if the filter can be realized exactly or only approximately. $\endgroup$
    – Matt L.
    Jun 15 at 10:30
  • 1
    $\begingroup$ This answer spells out how to do fractional delays and what the theory is behind it. It is simply based on the Nyquist-Shannon sampling and reconstruction theorem. $\endgroup$ Jun 15 at 15:14

Yes, of course. Any delay will look like this where the size of the delay determines the slope of the phase. If the the delay turns out to be an integer number of samples, than this very easy to implement. You can also do fractional delays but that's more work and can only be done approximately.

  • 1
    $\begingroup$ and if the delay, in units of samples, is fractional (or has a fractional component), there will be a minimum amount of delay that could be something like 8 or 16 or maybe more samples, just to decently represent the polyphase impulse response (what might usually be a windowed sinc function). $\endgroup$ Jun 15 at 15:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.