# phasezd

Version:

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

## Syntax

phasezd(b)
phasezd(b, a)
phasezd(b, a, w)
phasezd(b, a, w, fs)
phasezd(b, a, n)
phasezd(b, a, n, 'whole')
phasezd(b, a, n, fs)
phasezd(b, a, n, 'whole', fs)
h = phasezd(b, a, w)
h = phasezd(b, a, w, fs)
h = phasezd (b)
h = phasezd (b, a)
h = phasezd (b, a, n)
h = phasezd (b, a, n, 'whole')
h = phasezd (b, a, n, fs)
h = phasezd (b, a, n, 'whole', fs)
[h, f] = phasezd(b)
[h, f] = phasezd(b, a)
[h, f] = phasezd(b, a, n)
[h, f] = phasezd(b, a, n, 'whole')
[h, f] = phasezd(b, a, n, fs)
[h, f] = phasezd(b, a, n, 'whole', fs)
Legacy name: phasez

## 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 response. If you do not specify w, MathScript evaluates the phase response 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. The default is 512.

## 'whole'

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

## h

Phase response 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] = phasezd(b, a, n)

Where This Node Can Run:

Desktop OS: Windows

FPGA:

This product does not support FPGA devices