How to make Wavelet Toolbox work correctly?
显示 更早的评论
I have MatLab 2014a in my Laptop and i am running some codes that use Wavelet Toolbox (I checked the toolbox and I found the Wavelet Toolbox is there) and I got the error below.
Undefined function 'dwt2' for input arguments of type 'double'.
even when trying to run the internal example below, I got the same error.
load woman; wname = 'sym4'; [CA,CH,CV,CD] = dwt2(X,wname,'mode','per');
8 个评论
Geoff Hayes
2014-10-15
Ahmed - in the Command Window type
which dwt2 -all
Since I don't have the Wavelet Toolbox, I see
'dwt2' not found.
What result is returned for you?
ahmed
2014-10-15
Geoff Hayes
2014-10-15
It means that you have the file/function to run the example, but you no longer have a license (?). But this shouldn't prevent you from working through the example. Try the following
clear all;
load woman;
What are the variables in the workspace? Just type
whos
What is X (which should be loaded from the woman file). Also, try
doc dwt2
and/or
help dwt2
Do both of these commands (for documentation and/or help) return something?
ahmed
2014-10-15
Geoff Hayes
2014-10-15
So after you call load woman, what does whos show you?
ahmed
2014-10-15
Geoff Hayes
2014-10-15
Perhaps you can't use this functionality once the license expires. Did you download a trial version of this toolbox, or did you purchase a license for it?
ahmed
2014-10-16
回答(1 个)
Geoff Hayes
2014-10-16
Executing the statement
which dwt2 -all
returned
C:\Program Files\MATLAB\R2014a\toolbox\wavelet\wavelet\dwt2.m % Has no license available
Ahmed verified that the license had expired and updated it. The code in the toolbox is now working.
类别
在 帮助中心 和 File Exchange 中查找有关 Wavelet Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!