필터 지우기
필터 지우기

why haart2 function isn't found in matlab ?

조회 수: 3 (최근 30일)
Hadeer tawfik
Hadeer tawfik 2016년 9월 26일
댓글: Walter Roberson 2016년 9월 27일
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
Adam
Adam 2016년 9월 26일
And what does
which -all haar
show?
Hadeer tawfik
Hadeer tawfik 2016년 9월 26일
Also not found!
>> which -all haar
'haar' not found.
>>

댓글을 달려면 로그인하십시오.

채택된 답변

Steven Lord
Steven Lord 2016년 9월 26일
According to the notes at the end of the documentation pages for the haart and haart2 functions, these two functions were introduced in Wavelet Toolbox in release R2016b. You will not be able to use them in earlier releases.
  댓글 수: 2
Hadeer tawfik
Hadeer tawfik 2016년 9월 26일
Thank you so much, Is there any other function that may replace them and give me the same result in r2015? i have found hlwt2 and can't find any documentation about it
Walter Roberson
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
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.
  댓글 수: 1
Hadeer tawfik
Hadeer tawfik 2016년 9월 26일
편집: Hadeer tawfik 2016년 9월 26일
I am having 2015a version , and both haart and haar don't exist, what do u suggest me to do ?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Discrete Multiresolution Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by