Main Content

centerFrequencies

CWT filter bank bandpass center frequencies

Description

bpcf = centerFrequencies(fb) returns the wavelet bandpass center frequencies bpcf for the CWT filter bank fb. Frequencies are ordered from high to low. Frequencies are in cycles/sample if a sampling frequency or sampling period is not specified. If a sampling frequency is specified, bpcf has units of hertz. If a sampling period is specified, bpcf has units of cycles/unit time, where the time unit is the same as the duration SamplingPeriod.

example

Examples

collapse all

Create a CWT filter bank.

fb = cwtfilterbank;

Calculate the bandpass center frequencies.

bpcf = centerFrequencies(fb);

Plot the frequency responses of the filter bank and the bandpass center frequencies. The bandpass center frequencies correspond to the peaks of the frequency response of each wavelet in the filter bank.

freqz(fb)
hold on
plot(bpcf,2*ones(size(bpcf)),'rx')

Figure contains an axes object. The axes object with title CWT Filter Bank, xlabel Normalized Frequency (cycles/sample), ylabel Magnitude contains 72 objects of type line. One or more of the lines displays its values using only markers

Input Arguments

collapse all

Continuous wavelet transform (CWT) filter bank, specified as a cwtfilterbank object.

Output Arguments

collapse all

Wavelet bandpass center frequencies, returned as a real-valued vector of length Ns, where Ns is the number of scales in the filter bank. Frequencies are ordered from high to low. Frequencies are in cycles/sample if a sampling frequency or sampling period is not specified. If a sampling frequency is specified, bpcf has units of hertz. If a sampling period is specified, bpcf has units of cycles/unit time, where the time unit is the same as the duration SamplingPeriod.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2018b

See Also

Functions

Objects