MATLAB: How to get the scales used with the “Dyadic default” option in the Wavelet Toolbox

defaultdyadictoolboxwaveletWavelet Toolbox

How do I get the scales used with the "Dyadic default" option for "Scales" in the Wavelet Toolbox GUI?

Best Answer

The function "cwtft" returns a structure that among other things contains the scales used for the continuous wavelet transform. For this function the default wavelet type is Morlet which has a default value of 'scales' corresponding to the scales used with the "Dyadic default" option in the GUI. You can get these scales by passing "cwtft" any signal and reading the "scales" parameter of the structure. The following code loads a set of data shipped with MATLAB, passes it to "cwtft", and then stores the scales.
>> load kobe
>> out = cwtft(kobe);
>> dyadicDefault = out.scales
The documentation for "cwtft" also has the exact functions used for the "Default dyadic" scales under More About->Morlet Wavelet.