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.

zoom

Zoom into region of interest in Filter Analyzer app displays

Desde R2024a

Descripción

zoom(fa,"xy",lims) zooms into the area specified by lims in the active display of the Filter Analyzer app fa.

zoom(fa,"x",xlims) constrains the zoom to the x-axis.

ejemplo

zoom(fa,"y",ylims) constrains the zoom to the y-axis.

zoom(fa,"default") restores the axes limits to the default values.

zoom(fa,"passband") zooms into the passband of the filters. To use this syntax, you must have specified filters with design metadata in fa. To include metadata in your design, use a digitalFilter object or a filter System object™. You must have a DSP System Toolbox™ license to use this syntax.

zoom(___,DisplayNums=dispnums) zooms the displays with numbers specified in dispnums, in addition to any combination of input arguments from previous syntaxes..

Ejemplos

contraer todo

Design two filters with different frequency constraints. Start Filter Analyzer and visualize the magnitude responses of the filters.

d1 = designfilt("lowpassfir", ...
    PassbandFrequency=0.45,StopbandFrequency=0.55);
d2 = designfilt("highpassfir", ...
    PassbandFrequency=0.45,StopbandFrequency=0.35);
fa = filterAnalyzer(d1,d2,FilterNames=["LP" "HP"]);

Zoom into the frequency region containing the transition bands.

zoom(fa,"x",[0.3 0.6])

Argumentos de entrada

contraer todo

Filter Analyzer app handle, specified as a filterAnalyzer object.

Area limits, specified as a four-element vector of the form [xmin xmax ymin ymax].

Ejemplo: [0.2 0.5 -60 10]

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

Area x-limits, specified as a two-element vector of the form [xmin xmax].

Ejemplo: [0.2 0.5]

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

Area y-limits, specified as a two-element vector of the form [ymin ymax].

Ejemplo: [-60 10]

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

Displays to zoom, specified as an integer or a vector of integers. If you do not specify this argument, Filter Analyzer works on 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 5]

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

Historial de versiones

Introducido en R2024a