How to make Wavelet Toolbox work correctly?
Show older comments
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 Comments
Geoff Hayes
on 15 Oct 2014
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
on 15 Oct 2014
Geoff Hayes
on 15 Oct 2014
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
on 15 Oct 2014
Geoff Hayes
on 15 Oct 2014
So after you call load woman, what does whos show you?
ahmed
on 15 Oct 2014
Geoff Hayes
on 15 Oct 2014
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
on 16 Oct 2014
Answers (1)
Geoff Hayes
on 16 Oct 2014
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.
1 Comment
Mohammad Bhat
on 3 Mar 2018
'dwt2' not found. what to do
Categories
Find more on Wavelet Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!