centerPeriods
CWT filter bank bandpass center periods
Syntax
Description
Examples
Wavelet Filter Bank Bandpass Periods
Create two CWT filter banks. Set the sampling period of the first filter bank to 0.5 seconds, and the sampling frequency of the second filter bank to 2 Hz.
fb = cwtfilterbank('SamplingPeriod',seconds(0.5)); fb2 = cwtfilterbank('SamplingFrequency',2);
Obtain the bandpass center periods of both filter banks. Confirm the center periods of both filter banks are equal.
bp = centerPeriods(fb); bp2 = centerPeriods(fb2); bp(1:5)
ans = 5x1 duration
1.1517 sec
1.2344 sec
1.323 sec
1.418 sec
1.5197 sec
bp2(1:5)
ans = 5×1
1.1517
1.2344
1.3230
1.4180
1.5197
Obtain the bandpass center frequencies of the second filter bank. Confirm the reciprocals of the center frequencies are equal to the center periods.
f2 = centerFrequencies(fb2); 1./f2(1:5)
ans = 5×1
1.1517
1.2344
1.3230
1.4180
1.5197
Input Arguments
fb
— Continuous wavelet transform filter bank
cwtfilterbank
object
Continuous wavelet transform (CWT) filter bank, specified as a cwtfilterbank
object.
Output Arguments
p
— Wavelet bandpass center periods
real-valued vector | duration array
Wavelet bandpass center periods, returned as a real-valued vector of length Ns, where Ns is the number of scales in the filter bank.
If SamplingPeriod
is specified, p
is a
duration array with the same units and format as SamplingPeriod
. If
SamplingFrequency
is specified, p
is in
seconds.
Version History
Introduced in R2018b
MATLAB Command
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
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.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)