Main Content

Use Filter Analyzer App

App Workflow

A typical workflow for designing filters using the Filter Analyzer app is:

  1. Import Filters and Manage Sessions — Import existing filters available in the MATLAB® workspace, where each filter is either a set of numeric variables, a digitalFilter object, or one of the supported filter System objects (DSP System Toolbox) from DSP System Toolbox™. You can also save and share your Filter Analyzer session.

  2. Manage and Analyze Filters — View and compare filter details, analyze filter responses in frequency and time domains, organize analysis with multiple displays and display options.

Example: Analyze Lowpass IIR Filter

Use the Filter Analyzer app to import and analyze a lowpass filter that preserves frequency content under 200 Hz for signals sampled at 1 kHz. Use the Chebyshev type II filter design to create a low-order filter with a narrow transition region and no ripple in the passband.

Create Filter

Use the designfilt function to create a fifth-order Chebyshev type II filter with a sample rate of 1 kHz. You can also Use Filter Designer App to create the filter.

d = designfilt("lowpassiir",SampleRate=1000, ...
    FilterOrder=5,StopbandFrequency=200,ScaleSOS=true);

Import Filter

Open Filter Analyzer. In the File section of the Analyzer tab in the app toolstrip, select Import Filter. In the dialog box that appears, select the digitalFilter object d and click Import and Close. The app displays a filter design with the expected design specifications.

Filter Analyzer app, showing the Analyzer toolstrip tab, the lowpass IIR filter in the Filters table, and the magnitude response of the filter. The display shows the response plot along with a mask that correspond to the filter design specifications.

Inspect Filter

To inspect the filter, plot the magnitude and phase responses and set display options.

  1. Add the phase response as an overlaid analysis to the active display. In the Analysis gallery in the Analyzer tab, select Phase under Overlay Analysis.

  2. Show the CTF sections of the filter. In the Display Options tab, click CTF View.

Filter Analyzer app, showing the Display Options toolstrip tab, the lowpass IIR filter in the Filters table, and the magnitude and phase responses of the filter. The display shows the response plots for each CTF section of the filter.

See Also

Apps

Functions

Objects

Live Editor Tasks

Topics