Main Content

renameFilters

Rename filters in Filter Analyzer app

Since R2024a

Description

renameFilters(fa,filtnames,newfiltnames) renames the specified filters filtnames in the Filter Analyzer app fa to the names specified in newfiltnames.

example

Examples

collapse all

Start the Filter Analyzer app 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);

Rename the filters to "LP1" and "LP2".

renameFilters(fa,["d1" "d2"],["LP1" "LP2"])

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

New filter names, specified as a vector of strings. newfiltnames must have the same number of elements as filtnames.

Data Types: char | string

Version History

Introduced in R2024a