new wavelet for cwt

조회 수: 1(최근 30일)
ARAVIND B 2019년 7월 22일
답변: Sourav Bairagya 2019년 8월 7일
I have a signal its values are real and positive. Length of the signal is 2048. The signal has a pattern from 187 to 369 (signal vector index) that donot repeat and occur only at these location. A wavelet is created by design wavelet tool box based on the pattern observed, adding the wavelet, it does not work in dwt tool box and cwt tool box.
ERROR SHOWN when used in dwt is copied below.
Error using feval
Undefined function or variable 'waveso'.
Error in wfilters (line 71)
F = feval(fname,wname);
Error in wavedec (line 38)
[Lo_D,Hi_D] = wfilters(IN3,'d');
Error in dw1dfile (line 105)
[coefs,longs] = wavedec(Signal_Anal,Level_Anal,Wave_Name);
Error in dw1dmngr (line 89)
Error while evaluating UIControl Callback
ERROR SHOWN when the wavelet is used in cwt tool box it shows the following error
Insufficient number of outputs from right hand side of equal sign to satisfy assignment.
Error in wtbximport>ImportVAR_PROC_2/listSelected (line 570)
tmp_size = workspace_vars(var_ind).size;
Error using uiwait (line 81)
Error while evaluating UIControl Callback.
Error using feval
Undefined function or variable 'waveso'.
Error in wfilters (line 71)
F = feval(fname,wname);
Error in wavefun (line 79)
[Lo_R,Hi_R] = wfilters(wname,'r');
Error in centfrq (line 36)
[~,psi,xval] = wavefun(wname,iter);
Error in scal2frq (line 60)
f = centfrq(wname)./(a.*delta);
Error in cw1dmngr (line 502)
frequencies = scal2frq(scales,wav_Name,delta);
Error in cw1dmngr (line 569)

채택된 답변

Sourav Bairagya
Sourav Bairagya 2019년 8월 7일
From the error information you have provided, it seems that there is an undefined variable/function ‘waveso’ in your code. You can define it properly and then use dwt or cwt as per your necessity in your work.
If ‘waveso’ is the data file that you are using, then check that whether that file is properly added to your project’s path.
Also check that whether you have loaded that file properly before calling dwt or cwt function.
For more information about these functions you can follow these links:

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by