Obtain the raw and converted scales used in creating the wavelet bandpass filters.
[rs,cs] = scales(fb);
Obtain the filter bank bandpass center periods.
P = centerPeriods(fb);
Compare the finest converted scale with the smallest bandpass center period normalized by the sampling period.
min(cs)
ans = 2.3035
min(P)/seconds(0.001)
ans = 2.3035
The scales should increase by a factor of approximately , where is the number of voices per octave. The default value of is 10. Plot the ratios of successive scales and compare with .
len = length(rs);
plot(rs(2:len)./rs(1:len-1),'rx-')
hold on
plot(1:len-1,2^(1/10)*ones(1,len-1),'b')
title('Successive Scale Ratios')
legend('Scale Ratio','Scale Factor')
Raw scales used in creating the wavelet bandpass filters, returned as a
real-valued vector of length Ns, where
Ns is the number of wavelet bandpass frequencies
(equal to the number of scales).
Data Types: double
cs — Converted scales real-valued vector
Converted scales used in creating the wavelet bandpass filters, returned
as a real-valued vector of length Ns, where
Ns is the number of wavelet bandpass frequencies
(equal to the number of scales). cs is in units of the
sampling frequency or sampling period.
Data Types: double
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.