I have created a custom wavelet of Type 4 (without scaling function). I am able to view the wavelet via WAVEMENU with "Wavelet Display". However, when I use this wavelet with the WAVEDEC function, I receive the following error message:
************************************************ ERROR ... ------------------------------------------------ wfilters ---> The wavelet rtf08 is not valid! ************************************************ ??? Error using ==> wfilters at 97 Invalid argument value. Error in ==> wavedec at 33 [Lo_D,Hi_D] = wfilters(IN3,'d');
The reproduction steps are provided below:
% Add the custom wavelet family to the toolbox
wavemngr('add','rtf08ecg2','rtf08',4,'','rtf08ecg2',[1,2]) % Load the signal
load('cleanRatECG.mat') % Perform wavelet decomposition
[c,l] = wavedec(ecg,1,'rtf08');
Best Answer