Main Content

fvtool

Visualize filter bank

Description

example

fvtool(obj) visualizes the filters in the filter bank using the Filter Visualization Tool (FVTool).

example

fvtool(obj,ind) visualizes the filters corresponding to the elements in the vector ind.

example

fvtool(___,Name,Value) specifies options using one or more Name,Value pair arguments.

Examples

collapse all

Create an octaveFilterBank object. Call fvtool to visualize the filter bank.

octFiltBank = octaveFilterBank;
fvtool(octFiltBank);

To visualize a subset of filters in the filter bank, specify the second argument as a row vector of indices between one and the number of filters in the filter bank. If not specified, fvtool visualizes 1 to N filters of the filter bank, where N is the smallest of octFiltBank.NumFilters and 64. Visualize the ninth filter.

fvtool(octFiltBank,9);

To specify the number of FFT points used to compute the frequency response, use the NFFT name-value pair. Specify that the frequency response is calculated using a 8192-point FFT.

fvtool(octFiltBank,'NFFT',8192);

Create a gammatoneFilterBank object. Call fvtool to visualize the filter bank.

gammaFiltBank = gammatoneFilterBank;
fvtool(gammaFiltBank);

To visualize a subset of filters in the filter bank, specify the second argument as a row vector of indices between one and the number of filters in the filter bank. If not specified, fvtool visualizes 1 to N filters of the filter bank, where N is the smallest of gammaFiltBank.NumFilters and 64. Visualize the ninth filter.

fvtool(gammaFiltBank,9);

To specify the number of FFT points used to compute the frequency response, use the NFFT name-value pair. Specify that the frequency response is calculated using a 8192-point FFT.

fvtool(gammaFiltBank,'NFFT',8192);

Input Arguments

collapse all

Object to get filter frequency responses from, specified as an object of gammatoneFilterBank or octaveFilterBank.

Indices of filters to calculate frequency responses from, specified as a row vector of integers with values in the range [1, N]. N is the total number of filters designed by obj.

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'NFFT',2048

Number of DFT bins, specified as a positive integer.

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

Introduced in R2019a