필터 지우기
필터 지우기

Adding custom wavelet to modwt

조회 수: 4 (최근 30일)
Fred Severgnini
Fred Severgnini 2023년 6월 29일
답변: Balaji 2023년 8월 23일
Hello,
I am trying to work with a custom wavelet, which I call "qrs". Following the code example from wavemngr, I creates a .m file containin my wavelet, and added it to the system doing the following:
wavemngr('add','QRScomplex','qrs',1,'1 2 3 4 5','qrswavf')
I can tell the wavelet works because I can see it listed using
wavemngr('read')
Additionally, when I open the waveletAnalyzer I can use it in the "Wavelet 1D" option.
However, when I try to call my wavelet with modwt I get an error:
wt = modwt(signal, 'qre', 2);
Does anyone know why this is happening and how it can be fixed?
Here's the error message:
Error using wavemngr
Invalid wavelet name: qrs.
Error in wavemngr (line 339)
case 'wn' , i_fam = wavemngr('indw',arg);
Error in wfilters (line 63)
[wtype,fname] = wavemngr('fields',wname,'type','file');
Error in modwt (line 176)
[~,~,Lo,Hi] = wfilters(params.wname);
Error in get_wavelet_transform (line 17)
wt = modwt(signal, wavelet, level);

답변 (1개)

Balaji
Balaji 2023년 8월 23일
Hi Fred,
As per my understanding, you’re facing issues while trying to use the custom wavelet created using the “wavemngr” function.
The code for the custom wavelet is in the “qrswavf.m” file that you have created, therefore the input argument of “qrswavf” as you have determined should be the argument you should be passing to the “modwt” function.
If you are following the example code given in the documentation of “wavemngr”, you can modify your code, provided you have changed only the name of the variable, as follows:
wt = modwt(signal, 'qrs2');
You can refer to the documentation of “wavemngr” below:
https://in.mathworks.com/help/wavelet/ref/wavemngr.html
provide required documentation links as support. [SM1]

카테고리

Help CenterFile Exchange에서 Signal Analysis에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by