Error related to "wden" in wavelet toolbox
이전 댓글 표시
I try to denoise a signal with "wden" functon.
I followed the instruction and example provided by Mathwork, which is listed below:
snr = 3; init = 2055615866;
[xref,x] = wnoise(3,11,snr,init);
lev = 5;
xd = wden(x,'heursure','s','one',lev,'sym8');
Then the error message is shown:
Undefined function 'compare_strut_fieldnames' for input arguments of type 'struct'.
Error in iswtf (line 90)
tf = compare_strut_fieldnames(wtf_s, wtf);
Error in dwt (line 119)
elseif (iswtf(wtf))
Error in wavedec (line 45)
[x,d] = dwt(x,Lo_D,Hi_D); % decomposition
Error in wden (line 72)
[c,l] = wavedec(x,n,w);
It seems like Matlab cannot find the function "compare_strut_fieldnames". I suspect there is a typo that it should be "struct", not "strut". So I just copy the function "compare_struct_fieldnames" and renamed it to "compare_strut_fieldnames". But still doesn't work.
I tried other denoise function such as wdencmp, and still invalid due to the same error.
By the way, My Matlab version is R2014a.
Please Help. Thank you :)
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Continuous Wavelet Transforms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!