cwt.m normalization
Mostrar comentarios más antiguos
Hello, in cwt.m in section L1 Norm from cwt.m is the mention from: "To preserve the energy of the original signal, you must multiply the CWT by 1/sqrt(s)"
should I normalize the scalogram or is it already done from the cwt.m?
Thx
Respuesta aceptada
Más respuestas (3)
Wayne King
el 11 de Mayo de 2017
Hi Simon, the scalogram is normalized for the L1 norm already. In many other uses of the wavelet transform, it is customary to normalize by 1/sqrt(s) so that the L2 norm is preserved. In this case the wavelet transform is computed with 1/s. You can see this by entering the following example:
Fs = 1e3;
t = 0:1/Fs:1;
x = cos(2*pi*32*t).*(t>=0.1 & t<0.3)+sin(2*pi*64*t).*(t>0.7);
wgnNoise = 0.05*randn(size(t));
x = x+wgnNoise;
cwt(x,1000)
Now, if you look at the magnitude of these unit sinusoidal components in the colorbar, you see their amplitude is essentially 1 as expected even though they are at different scales. You can verify this with the data cursor. This is a direct result of the L1 normalization.
Hope that helps, Wayne
4 comentarios
Simon Hofmann
el 11 de Mayo de 2017
Simon Hofmann
el 11 de Mayo de 2017
In Mei Sou
el 25 de Jul. de 2020
Would you please let me know what is the unit/dimension of the magnitude in the scalogram obtained from the new version cwt? Is it the same as the input function x(t)?
Muhammad Deeb
el 2 de Nov. de 2021
cwt(x1,Fs)
When executing the program I get the following error message:
Warning: Struct field assignment overwrites a value with class "double". See MATLAB R14SP2
Release Notes, Assigning Nonstructure Variables As Structures Displays Warning, for details.
> In mmm2 at 16
Error using cwt (line 145)
Not enough input arguments.
Error in mmm2 (line 21)
cwt(x,Fs)
Manuel Guimarães
el 27 de Jul. de 2018
0 votos
This is why I think TMW should support the old CWT (now labeled as not recommended) along with the new cwt version. L1 has advantages in many instances but not all. Some applications require L2 and a linear scale on the pseudo frequency axis (not log). CWT may be used as a detector not for reconstruction.
In Mei Sou
el 25 de Jul. de 2020
0 votos
Would you please let me know what is the unit/dimension of the magnitude in the scalogram obtained from the new version cwt? Is it the same as the input function x(t)?
Categorías
Más información sobre Continuous Wavelet Transforms en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!