Create a gammatoneFilterBank object. Call freqz to get the complex frequency response, H, of the filter bank and a vector of frequencies, f, at which the response is calculated. Plot the magnitude frequency response of the filter bank.
To get the frequency response of 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. Get the frequency response of the 10th filter in the filter bank and plot the magnitude frequency response.
To specify the number of points in the frequency response, use the N name-value argument. Specify that the frequency response contains 128 points. Plot the magnitude frequency response.
To visualize the magnitude frequency response only, call freqz without any output arguments. Plot the magnitude frequency response, in dB, of filters 20, 21, and 22 with 1024 points.
Create an octaveFilterBank object. Call freqz to get the complex frequency response, H, of the filter bank and a vector of frequencies, f, at which the response is calculated. Plot the magnitude frequency response in dB.
To get the frequency response of 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. Get the frequency response of the 5th filter in the filter bank and plot the magnitude frequency response in dB.
To specify the number of points in the frequency response, use the N name-value argument. Specify that the frequency response contains 8192 points. Plot the magnitude frequency response in dB.
To visualize the magnitude frequency response only, call freqz without any output arguments. Plot the magnitude frequency response, in dB, of filters 4, 5, and 6 with 1024 points.
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.
Number of points in the frequency response, specified as a positive integer.
Complex frequency response of each filter, returned as an
M-by-N matrix. M is the
number of points, specified by n.
N is the number of filters, which is either
length(ind) or, if ind
is not specified, the total number of filters in the filter bank.
Data Types: double
Frequencies at which the response is computed in Hz, returned as a column
vector.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.