Main Content

duplicateDisplays

Duplicate displays in Filter Analyzer app

Since R2024a

Description

newdispnums = duplicateDisplays(fa) duplicates the active display in the Filter Analyzer app fa, and returns the identification number of the new display in newdispnums. The duplicate display has the same plotted filters and analysis options as the original.

newdispnums = duplicateDisplays(fa,DisplayNums=dispnums) duplicates the displays with the specified identification numbers dispnums, and returns a vector of identification numbers corresponding to the new displays.

example

Examples

collapse all

Design a bandpass IIR filter and display its magnitude and phase responses in Filter Analyzer.

d1 = designfilt("bandpassiir", ...
    FilterOrder=6,StopbandAttenuation=55, ...
    StopbandFrequency1=0.35,StopbandFrequency2=0.7);
fa = filterAnalyzer(d1,FilterNames="BP", ...
    Analysis="magnitude",OverlayAnalysis="phase");

Duplicate the display and update it to show the responses using 24 FFT points.

ndn = duplicateDisplays(fa);
setAnalysisOptions(fa,DisplayNums=ndn,NFFT=24)

Input Arguments

collapse all

Filter Analyzer app handle, specified as a filterAnalyzer object.

Display numbers, 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.

Example: [1 5]

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

Output Arguments

collapse all

Identification numbers of new displays, returned as an integer or a vector of integers.

Version History

Introduced in R2024a