# phasedelay

Version:
Last Modified: March 15, 2017

Computes the phase delay vector and the frequency vector of a filter. If you do not request an output, this function plots the phase delay of the filter in the current plot window. phasedelay(b) is equivalent to phasedelay(b, [1], 512). phasedelay(b, a) is equivalent to phasedelay(b, a, 512).

## Syntax

phasedelay(b)
phasedelay(b, a)
phasedelay(b, a, w)
phasedelay(b, a, w, fs)
phasedelay(b, a, n)
phasedelay(b, a, n, 'whole')
phasedelay(b, a, n, fs)
phasedelay(b, a, n, 'whole', fs)
h = phasedelay (b)
h = phasedelay (b, a)
h = phasedelay (b, a, n)
h = phasedelay (b, a, n, 'whole')
h = phasedelay (b, a, n, fs)
h = phasedelay(b, a, w)
h = phasedelay(b, a, w, fs)
[h, f] = phasedelay(b)
[h, f] = phasedelay(b, a)
[h, f] = phasedelay(b, a, n)
[h, f] = phasedelay(b, a, n, 'whole')
[h, f] = phasedelay(b, a, n, fs)
[h, f] = phasedelay(b, a, n, 'whole', fs)

## b

Numerator coefficients of the filter. b is a vector.

## a

Denominator coefficients of the filter. a is a vector.

Default: [1]

## w

Frequency points at which you want to evaluate the phase delay. If you do not specify w, MathScript evaluates the phase delay at n points equally spaced around the upper half of the unit circle. w is a vector.

## fs

Sampling frequency in Hz. fs is a scalar.

## n

Number of frequency points. n is a positive integer.

Default: 512

## 'whole'

Directs MathScript to evaluate the phase delay at n points equally spaced around the unit circle.

## h

Phase delay vector of the filter. h is a real vector.

## f

Discrete frequency vector, in radians/sample, that corresponds to h. f is a vector.

b = [1, 2];
a = [-1, 1, 1, 3];
n = 32;
[H, F] = phasedelay(b, a, n)

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices