Main Content

deleteFilters

Delete filters from Filter Analyzer app

Since R2024a

    Description

    deleteFilters(fa) deletes all the filters in the Filter Analyzer app fa.

    deleteFilters(fa,FilterNames=filtnames) deletes the filters with the specified names filtnames.

    example

    Examples

    collapse all

    Start Filter Analyzer with two lowpass filters.

    d1 = designfilt("lowpassfir", ...
        PassbandFrequency=0.45,StopbandFrequency=0.55);
    d2 = designfilt("lowpassfir", ...
        PassbandFrequency=0.25,StopbandFrequency=0.35);
    fa = filterAnalyzer(d1,d2,FilterNames=["LP1" "LP2"]);

    Delete one of the filters from the app.

    deleteFilters(fa,FilterNames="LP1")

    Input Arguments

    collapse all

    Filter Analyzer app handle, specified as a filterAnalyzer object.

    Filter names, specified as a vector of strings or cell of character vectors. Filter names are the names that identify the different filters in the Filters table of the Filter Analyzer app.

    Example: ["LP_a" "LP_b"]

    Data Types: cell | string

    Version History

    Introduced in R2024a