Phase delay of digital filter
[phi,w] = phasedelay(b,a,n)
[phi,w] = phasedelay(sos,n)
[phi,w] = phasedelay(d,n)
[phi,w] = phasedelay(...,n,'whole'
)
phi = phasedelay(...,w)
[phi,f] = phasedelay(...,n,fs)
[phi,f]
= phasedelay(...,n,'whole'
,fs)
phi = phasedelay(...,f,fs)
[phi,w,s] = phasedelay(...)
[phi,f,s] = phasedelay(...)
phasedelay(...)
[phi,w] = phasedelay(b,a,n)
returns
the n
-point phase delay response vector, phi
,
and the n
-point frequency vector in radians/sample, w
,
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. For best results, set n
to
a value greater than the filter order.
[phi,w] = phasedelay(sos,n)
returns the n
-point
phase delay response for the second-order sections matrix, sos
. sos
is
a K-by-6 matrix, where the number of sections, K,
must be greater than or equal to 2. If the number of sections is less
than 2, phasedelay
considers the input to be
a numerator vector, b
. Each row of sos
corresponds
to the coefficients of a second order (biquad) filter. The ith
row of the sos
matrix corresponds to [bi(1)
bi(2) bi(3) ai(1) ai(2) ai(3)]
.
[phi,w] = phasedelay(d,n)
returns the n
-point
phase delay response of the digital filter, d
.
Use designfilt
to generate d
based
on frequency-response specifications.
[phi,w] = phasedelay(...,n,
uses 'whole'
)n
equally
spaced points around the whole unit circle.
phi = phasedelay(...,w)
returns
the phase delay response at frequencies specified, in radians/sample,
in vector w
. The frequencies are normally between
0 and π. w
must contain
at least two elements.
[phi,f] = phasedelay(...,n,fs)
and [phi,f]
= phasedelay(...,n,
return
the phase delay vector 'whole'
,fs)f
(in Hz), using the sampling
frequency fs
(in Hz). f
must
contain at least two elements.
phi = phasedelay(...,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(...)
with no
output arguments plots the phase delay response versus frequency.
Note:
If the input to |
designfilt
| digitalFilter
| freqz
| fvtool
| grpdelay
| phasez