I have a project to transform an image using dwt.
I successfully done it using function dwt2, and now I try to use function dwt3 by changes some code from the function dwt2 (add more subband: 8 subbands). Unfortunately, an error comes out, which said "Too many output arguments".
My question is, what is the right way to write MATLAB code for dwt3? Is it not same as dwt2, just add more subbands?
Just by looking at the official documentation for
dwt2anddwt3, I see thatdtw3has only 1 output variable, whereasdtw2has 4.I assume you just replaced the string
dtw2in your code todwt3, without paying attention to the amount of allowed output variables. So there you go, that's where the error "too many output variables" comes from...If
dwt3only returns the transformed vector, cut the number of output variables to 1, and I'm sure the error will away:Here I transformed
Xusingdwt3with the Daubechies 2-tap wavelet, and stored the result inY.P.S
You need to show more code if you want more productive, helpful answers...