# filterbank

Full-weight CWT filter bank for deep learning

## Syntax

``psif = filterbank(clayer)``

## Description

example

````psif = filterbank(clayer)` returns the full-weight continuous wavelet transform (CWT) filter bank for the `cwtLayer`, `clayer`.```

## Examples

collapse all

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

collapse all

CWT layer, specified as a `cwtLayer` object.

## Output Arguments

collapse all

Full-weight CWT filter bank, returned as a matrix.

Data Types: `double`

## Version History

Introduced in R2022b
{"ft_lang_label":"__label__en","ft_lang_prob":0.64882857,"math_prob":0.8694222,"size":1178,"snap":"2022-40-2023-06","text_gpt3_token_len":333,"char_repetition_ratio":0.17035775,"word_repetition_ratio":0.0,"special_character_ratio":0.24533106,"punctuation_ratio":0.15207373,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9814328,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-01-28T11:27:16Z\",\"WARC-Record-ID\":\"<urn:uuid:3afb5187-1743-4bd4-acf4-c076eb76b114>\",\"Content-Length\":\"84906\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1fab5255-2d74-4d5e-acda-82c5f4b44769>\",\"WARC-Concurrent-To\":\"<urn:uuid:01914307-93fc-4f96-9ca4-cd0b3583b0da>\",\"WARC-IP-Address\":\"104.68.243.15\",\"WARC-Target-URI\":\"https://www.mathworks.com/help/wavelet/ref/cwtlayer.filterbank.html\",\"WARC-Payload-Digest\":\"sha1:GDK4QH353F5H7A6BJLGJWTS5TTOURXQA\",\"WARC-Block-Digest\":\"sha1:7EA3VGHLGW4Y3DH5HHGGSWROHSN4VCAN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764499541.63_warc_CC-MAIN-20230128090359-20230128120359-00518.warc.gz\"}"}