Borrar filtros
Borrar filtros

Why does the wavedec function error out for a custom wavelet of Type 2 in Wavelet Toolbox 5.1 (R2018b)?

2 visualizaciones (últimos 30 días)
I have created a custom wavelet of Type 2 (bi-orthogonal). I am not able to use it in the toolbox or in scripts, but it is included when I use the wavemngr('read') command. I have been able to use it before, (both in the toolbox and in scripts), but after I wanted to used in a different folder (where I also included the wavemngr('add'... command) it did not work. Here is my code:
wavemngr('restore') % Add the custom wavelet family wavemngr('add','Malevtinsky','mal',2,'1 2 3 4 5 6 7 8 9',... 'malwav'); % Load the signal load('A30') s = A30; % Perform wavelet decomposition [C,L]=wavedec(s,1,'mal3');
And I get this Error message: Error using malwav Too many output arguments.
Error in wfilters (line 85)
[Rf,Df] = feval(fname,wname);
Error in wavedec (line 42)
[Lo_D,Hi_D] = wfilters(IN3,'d');
Error in waveletStuff (line 10)
[C,L]=wavedec(s,1,'mal3');
malwav.m is function describing my wavelet:
function F = malwav(wname)
lw = length(wname);
n = str2num(wname(4:lw));
pas = pascal(n+1,1);
F = abs(pas(n+1,:));

Respuestas (0)

Categorías

Más información sobre Discrete Multiresolution Analysis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by