Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

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

Asked by adam

adam (view profile)

on 17 Jun 2013

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

0 Comments

adam

adam (view profile)

Products

No products are associated with this question.

2 Answers

Answer by Wayne King

Wayne King (view profile)

on 17 Jun 2013
Accepted answer

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.

2 Comments

adam

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

adam (view profile)

on 27 Jun 2013

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

Wayne King

Wayne King (view profile)

Answer by adam

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 ?

2 Comments

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

adam (view profile)

on 21 Jun 2013

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

adam

adam (view profile)

Contact us