Table Of Contents

fir_pmord

Version:
    Last Modified: March 15, 2017

    Returns the order and normalized frequencies of the lowest order linear phase FIR filter with a given specification. The designed filter is an optimal equiripple filter that uses the Parks-McClellan algorithm.

    Syntax

    [n, fb, ab, w] = fir_pmord(f, a, ripple)
    [n, fb, ab, w] = fir_pmord(f, a, ripple, fs)
    Legacy name: firpmord

    Inputs

    f

    Cutoff frequencies of the filter. f is a vector of increasing positive numbers in the interval [0, fs/2].

    a

    Desired magnitudes at the f frequencies. a is a real vector.

    ripple

    Maximum deviation of ripples per band. ripple has the same size as a. ripple is a real vector.

    fs

    Sampling frequency. fs is a positive number.

    Default: 2

    Outputs

    n

    Estimated filter order. n is a positive integer.

    fb

    Normalized frequencies corresponding to f. fb is a real vector of increasing values in the interval [0, 1].

    ab

    Magnitudes of the filter. ab is a real vector of the same size as fb.

    w

    Weights of the filter. w is a vector of positive numbers and is half the size of fb.

    F = [100, 200];
    A = [0, 1];
    RIPPLE = [0.05, 0.02];
    FS = 500;
    [N, FB, AB, W] = fir_pmord(F, A, RIPPLE, FS)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics