This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Visualize and validate filter response





visualize(weightFilt) plots the magnitude response of the frequency-weighted filter, weightFilt. The plot is updated automatically when properties of the object change.


visualize(weightFilt,N) uses an N-point FFT to calculate the magnitude response.


visualize(___,mType) creates a mask based on the class of filter specified by mType, using either of the previous syntaxes.


collapse all

Create an object of the weightingFilter System object™ and then plot the magnitude response of the filter.

weightFilt = weightingFilter;

Create an object of the octaveFilter System object™. Plot a 1024-point frequency representation.

weightFilt = weightingFilter;

Create an object of the weightFilt System object™. Visualize the class 2 compliance of the filter design.

weightFilt = weightingFilter;
visualize(weightFilt,'class 2')

Input Arguments

collapse all

Object of the weightingFilter System object™.

Number of DFT bins in frequency-domain representation, specified as a positive scalar. The default is 2048.

Data Types: single | double

Type of mask, specified as 'class 1' or 'class 2'.

The mask attenuation limits are defined in the IEC 61672-1:2002 standard. The mask is defined for A-weighting and C-weighting filters only.

  • If the mask is green, the design is compliant with the IEC 61672-1:2002 standard.

  • If the mask is red, the design breaks compliance.


The pole-zero values defined in the ANSI S1.42-2001 standard are used for designing the A-weighted and C-weighted filters. The pole-zero values are based on analog filters, so the design can break compliance for lower sample rates.

Data Types: char

Introduced in R2016b