how cwt works?

3 views (last 30 days)
Ting
Ting on 10 Mar 2011
Answered: Shreshth on 27 Mar 2024
Greetings, I am trying to understand how cwt works. In line 235, coefs(ind,:) = -sqrt(a)*wkeep1(diff(wconv1(val_SIG,f)),lenSIG). I wonder why '-sqrt(a)' here? Does it should be 1/sqrt(a)? Much appreciates!

Answers (1)

Shreshth
Shreshth on 27 Mar 2024
hello,
The use of -sqrt(a) in the code you've mentioned for the Continuous Wavelet Transform (CWT) is unusual, as the standard scaling factor in CWT is (\frac{1}{\sqrt{|a|}}) to ensure normalization across different scales. The negative sign and the specific form -sqrt(a) do not align with the standard CWT formulation. This discrepancy could be due to a specific modification for a particular application, or it might be an error. To resolve this, you should check any available documentation or comments related to the code, or experiment by replacing -sqrt(a) with (\frac{1}{\sqrt{|a|}}) and observing the results for alignment with theoretical expectations.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!