Many systems require phase compensation. An allpass filter provides just that without affecting magnitude response. This function creates a filter with a magnitude response of unity and n number of pole/zero complex-conjugate pairs spaced evenly starting at Fst and ending at Fed. The order of the allpass filter is 2n. The coefficients of the filter, b and a, are passed as output arguments. ALLPASS can run without the output arguments. This will display the Pole-Zero plot and the frequency response of the filter.
Syntax:
>>[b,a]=allpass(n,Fst,Fed,mag,Fs) or
>>allpass(n,Fst,Fed,mag,Fs)
Cite As
Dean Andersen (2026). allpass.m (https://www.mathworks.com/matlabcentral/fileexchange/59-allpass-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Digital and Analog Filters > Digital Filter Analysis >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
