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.

showLegend

Show or hide display legends in Filter Analyzer app

Desde R2024a

Descripción

showLegend(fa,showit) shows or hides the legend on the active display in the Filter Analyzer app fa, depending on whether showit is true or false, respectively. By default, Filter Analyzer uses the filter names to specify the legend strings. If you want to add information to the legend strings, use setLegendStrings.

showLegend(___,DisplayNums=dispnums) shows or hides the legend on the displays specified in dispnums.

ejemplo

Ejemplos

contraer todo

Design a lowpass filter. Start Filter Analyzer and show the magnitude response.

d1 = designfilt("lowpassfir", ...
    PassbandFrequency=0.45,StopbandFrequency=0.55);
fa = filterAnalyzer(d1);

Hide the legend.

showLegend(fa,false)

Argumentos de entrada

contraer todo

Filter Analyzer app handle, specified as a filterAnalyzer object.

Show option, specified as a logical 0 (false) or 1 (true).

Tipos de datos: logical

Displays on which to toggle legends, specified as an integer or a vector of integers. If you do not specify this argument, Filter Analyzer toggles the legend on the active display. Identification numbers appear above the plotting area of the app, on the tabs that correspond to the different displays.

Ejemplo: [1 5]

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

Historial de versiones

Introducido en R2024a