Hi Steven,
This code runs correctly on R2014a.
snr = 3; init = 2055615866;
[xref,x] = wnoise(3,11,snr,init);
lev = 5;
xd = wden(x,'heursure','s','one',lev,'sym8');
I believe your issue is that you have some non-MathWorks' functions on your path preceding MathWorks functions. Because they are named the same as the MathWorks function, that is causing the issue.
For starters, please enter
at the command prompt.
You should get something back like:
matlab\toolbox\wavelet\wavelet\dwt.m
If you have downloaded somebody else's version of dwt.m then that can explain the errors you are seeing.
The errors you are reporting in "compare_strut_fieldnames" or even "compare_struct_fieldnames" as well as iswtf() are not functions that exist or would be called by the code example you show. In other words, not part of the MathWorks' Wavelet Toolbox.
If you find that you are calling a dwt.m that is not in matlab/toolbox/wavelet/wavelet then please remove the folder with the non-MathWorks' dwt.m from your path, or move that function somewhere outside of the MATLAB path.
Hope that helps,
Wayne
Best Answer