MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by I Made
on 22 Feb 2013

So here is the formula of DWT as you can see

[cA,cD] = dwt(X,'wname')

cA = approximation coefficients vector

cD = detail coefficients vector

X = vector x

But in case of processing .wav file what would X be?

*No products are associated with this question.*

Answer by Walter Roberson
on 22 Feb 2013

Accepted answer

X = wavread('YourFile.wav');

Or possibly

X = wavread('YourFile.wav') ';

I Made
on 22 Feb 2013

Wow yeah that's it, sorry i'm really new to matlab. After all my college not allowed using matlab for this paper of mine. I just wanted to rewrite the matlab code in java. I need much more understanding about the function. Thanks for the answer, and do you know what is it exactly the output of the wavread? is it frequency over time of the wav file(the theory say that)? or?

If yes, an example of the output it'll be great

Anyway thanks for your answer :D

## 0 Comments