## How can I get a time-frequency representation of the resulted details and approximation signals from a discrete wavelet transform?

### adam (view profile)

on 17 Jun 2013
Accepted Answer by Wayne King

### Wayne King (view profile)

I am using discrete wavelet tranform to separate frequency bands from a given signals. My question is, How can I get a time-frequency representation of the resulted details and approximation signals from a discrete wavelet transform? there is any function to plot the frequency versus the time of such signals ? thanks

## Products

No products are associated with this question.

### Wayne King (view profile)

Answer by Wayne King

### Wayne King (view profile)

on 17 Jun 2013

That is much easier to do with the continuous wavelet transform. You can certainly plot the wavelet coefficients with the appropriate spacing for the DWT, but keep in mind with the DWT the translation parameter is dependent on scale so that for level j, the details are spaced as 2^j*k, where k = 1,2,3,...

If you are really interested in visualizing a time-frequency analysis using wavelets, then the CWT is the way to go. You can construct the scale vector as you see fit.

### adam (view profile)

on 18 Jun 2013

Thank you Wayne But my signal is a discrete one so I must show the frequency components and their localization in time for every detail signal, so I must use the DWT and not CWT. And in the case of CWT, how to visualize my frequency component in 2D plot ?

### adam (view profile)

on 27 Jun 2013

Thanks a lot Wayne, I am waitin for your example.

### adam (view profile)

on 19 Jun 2013

Thank you Wayne But my signal is a discrete one so I must show the frequency components and their localization in time for every detail signal, so I must use the DWT and not CWT. And in the case of CWT, how to visualize my frequency component in 2D plot ?

Wayne King

### Wayne King (view profile)

on 19 Jun 2013

Hi Adam, you can still use continuous analysis for a discrete signal, the "continuous" here means that the translation and scale parameters are not restricted to be dyadic like they are with the DWT. I'll come up with an example today for both discrete and continuous and post it in this thread.

### adam (view profile)

on 21 Jun 2013

Thanks a lot Wayne, I am waitin for your example.

#### Join the 15-year community celebration.

Play games and win prizes!

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