Table Of Contents

zerophase

Version:
    Last Modified: March 15, 2017

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

    Syntax

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

    Inputs

    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 zero phase response. If you do not specify w, MathScript evaluates the zero 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.

    Default: 512

    'whole'

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

    Outputs

    h

    Zero 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.

    p

    Continuous phase vector of the filter. p is a real vector.

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

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics