Contenido principal

La traducción de esta página aún no se ha actualizado a la versión más reciente. Haga clic aquí para ver la última versión en inglés.

clearLegendStrings

Clear alternative legend strings for filters in Filter Analyzer app

Desde R2024a

Descripción

clearLegendStrings(fa) clears all the strings added to the legends by the setLegendStrings function from the active display of the Filter Analyzer app fa.

clearLegendStrings(fa,Name=Value) specifies additional options using name-value arguments. You can specify the filters whose legend strings you want to clear and the display from which to clear the legend strings.

ejemplo

Ejemplos

contraer todo

Start Filter Analyzer with two filters and set the names of the filters to "LP1" and "LP2".

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"]);

Append descriptive legend strings to the filters.

setLegendStrings(fa,["FIR 0.45 lowpass" "FIR 0.25 lowpass"])

Clear the appended legend string for the filter with the lower passband frequency.

clearLegendStrings(fa,FilterNames="LP2")

Argumentos de entrada

contraer todo

Filter Analyzer app handle, specified as a filterAnalyzer object.

Argumentos de par nombre-valor

contraer todo

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Ejemplo: clearLegendStrings(fa,FilterNames=["LP" "HP"]) clears the legend strings for the filters with the names "LP" and "HP" in the specified Filter Analyzer app instance fa.

Displays from which to clear strings, specified as a vector of display numbers. If you do not specify this argument, Filter Analyzer uses the active display. Use display identification numbers to target displays when using other Filter Analyzer functions. Identification numbers appear above the plotting area of the app, on the tabs that correspond to the different displays.

Ejemplo: [1 4]

Tipos de datos: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

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. clearLegendStrings clears only legend strings added using setLegendStrings. The function does not clear filter names.

Ejemplo: ["LPbutter" "LPelliptic"]

Tipos de datos: cell | string

Historial de versiones

Introducido en R2024a