error message when using dwt3
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
Hi there I get the following error message when trying to use dwt3. I have used dwt2 successfully but I get the following with this function
Undefined function or method 'dwt3' for input arguments of type 'double'.
Error in ==> part1reconstruct at 38 wt=dwt3(Adash,'bior2.4');
What do I need to change the data type to as I have looked at the documents and it does not say!
Thanks again guys :)
1 commentaire
Walter Roberson
le 28 Mar 2013
Is it possible you are using a version of MATLAB from before dwt3 was introduced? Which one are you using? What does
which -all dwt3
which -all dwt2
show ?
Réponses (2)
Wayne King
le 28 Mar 2013
I think Walter's comment above is right on. dwt3.m should work if you have the Wavelet Toolbox and a version of MATLAB after dwt3.m was introduced (R2010a).
X = randn(10,10,3);
WT = dwt3(X,'bior2.4');
works.
Bran
le 28 Mar 2013
0 votes
4 commentaires
Wayne King
le 28 Mar 2013
Modifié(e) : Wayne King
le 28 Mar 2013
dwt2 is not appropriate for a 3-D matrix unless it's a true color image. That's why it is giving you x3 in the 3rd dimension, it's assuming that you are giving it a MxNx3 matrix.
Bran
le 2 Avr 2013
Wayne King
le 2 Avr 2013
If you want to take the discrete wavelet transform of a 3-d dimensional dataset, then yes, you need to use 3-D transform. Are you sure you can use the 2-D wavelet transform on 2-D slices of your data?
Bran
le 10 Avr 2013
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!