filterbank
Full-weight CWT filter bank for deep learning
Description
Examples
Obtain Full-Weight CWT Filter Bank
Create a cwtLayer
for a signal of length 2048 samples. Specify the analytic Morlet wavelet.
clayer = cwtLayer(SignalLength=2048,Wavelet="amor");
Obtain the full-weight CWT filter bank of the layer.
psif = filterbank(clayer);
Plot the filter bank.
slen = clayer.SignalLength; f = 0:1/slen:1-1/slen; plot(f,psif') xlim([0 1/2]) xlabel("Cycles/Sample") ylabel("Magnitude") title("Full-Weight Filter Bank")
Create a CWT filter bank. Specify the same wavelet and signal length you used to create the CWT layer. Obtain the two-sided frequency responses of the wavelet filters in the filter bank. Compare with the full-weight CWT filter bank.
fb = cwtfilterbank(SignalLength=2048,Wavelet="amor", ... Boundary="periodic"); psidft = freqz(fb,FrequencyRange="twosided"); max(abs(psidft(:)-psif(:)))
ans = 9.9601e-09
Input Arguments
clayer
— CWT layer
cwtLayer
object
CWT layer, specified as a cwtLayer
object.
Output Arguments
psif
— Full-weight CWT filter bank
matrix
Full-weight CWT filter bank, returned as a matrix.
Data Types: double
Version History
Introduced in R2022b
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
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)