why haart2 function isn't found in matlab ?
3 次查看(过去 30 天)
显示 更早的评论
I am trying to use haart2 in matlab , but everytime it shows me this error
Undefined function or variable 'haart2'.
Error in haar (line 5)
[a2,h2,v2,d2] = haart2(im,2);
So i checked if i have the wavelet toolbox and it turns out that it exists in my matlab :
>> ver wavelet
---------------------------------------------------------------------------------------------
MATLAB Version: 8.5.0.197613 (R2015a)
MATLAB License Number: 161052
Operating System: Microsoft Windows 8 Pro Version 6.2 (Build 9200)
Java Version: Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) Client VM mixed mode
---------------------------------------------------------------------------------------------
Wavelet Toolbox Version 4.14.1 (R2015a)
so what is wrong?
4 个评论
采纳的回答
Steven Lord
2016-9-26
2 个评论
Walter Roberson
2016-9-27
dwtmode('per');
[CA,CH,CV,CD] = dwt2(X,'haar');
I am not sure if the dwtmode() is needed; I am copying from an old posting.
更多回答(1 个)
Adam
2016-9-26
So far as I can see the function in the Wavelet Toolbox is named
haart
so I'm not sure what your haar function is, but it isn't the one from the toolbox unless it is an old version.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Multiresolution Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!