How do I apply a 5 level wavelet to an audio file?

Hello everyone,
I add a wavelet to the example in the link before the stft process. I want to unlock 5 levels. However, I am making such a mistake. How can I solve this?
len=length(audio);
[c,l]=wavedec(audio,5,'bior3.1');
approx = appcoef(c,5,'bior3.1');
[cd1,cd2,cd3,cd4,cd5] = detcoef(c,l,[1 2 3 4 5]);

1 Comment

I understand, you want to add a wavelet to the audio in this example. Could you kindly provide more information that can help me understand your workflow? Please include the error messages, if any.

Sign in to comment.

Answers (0)

Categories

Find more on Wavelet Toolbox in Help Center and File Exchange

Asked:

on 27 May 2022

Commented:

on 20 Jun 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!