Signal Processing Toolbox Previous page   Next Page
phasedelay

CPhase delay of digital filters

Syntax

Description

[phi,w] = phasedelay(b,a,n) returns the n-point phase delay response vector phi and the n-point frequency reponse vector w (in radians/sample) of the filter defined by numerator coefficients b and denominator coefficients a. The phase delay response is evaluated at n equally spaced points around the upper half of the unit circle. If n is omitted, it defaults to 512.

[phi,w] = phasedelay(b,a,n,'whole') uses n equally spaced points around the whole unit circle.

phi = phasedelay(b,a,w) returns the phase delay response at frequencies specified in vector w (in radians/sample). The frequencies are normally between 0 and pi.

[phi,f] = phasedelay(b,a,n,fs) and [phi,f] = phasedelay(b,a,n,'whole',fs) return the phase delay vector f (in Hz), using the sampling frequency fs (in Hz).

phi = phasedelay(b,a,f,fs) returns the phase delay response at the frequencies specified in vector f (in Hz), using the sampling frequency fs (in Hz)..

[phi,w,s] = phasedelay(...) and [phi,f,s] = phasedelay(...) return plotting information, where s is a structure with fields you can change to display different frequency response plots.

phasedelay(b,a,...) with no output arguments, plots the phase delay response of the filter.

Examples

Example 1

Plot the phase delay response of a constrained least squares FIR filter:

Example 2

Plot the phase delay response of an elliptic filter:

See Also

freqz, fvtool, phasez, grpdelay


Previous page  periodogram phasez Next page

© 1994-2005 The MathWorks, Inc.