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 clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.