| Wavelet Toolbox | ![]() |
Syntax
FREQ = centfrq('wname')
FREQ = centfrq('wname',ITER)
[FREQ,XVAL,RECFREQ] = centfrq('wname',ITER,'plot')
Description
FREQ = centfrq('wname') returns the center frequency in herz of the wavelet function, 'wname' (see wavefun for more information).
For FREQ = centfrq('wname',ITER), ITER is the number of iterations performed by the function wavefun, which is used to compute the wavelet.
[FREQ,XVAL,RECFREQ] = centfrq('wname',ITER,'plot') returns, in addition, the associated center frequency based approximation RECFREQ on the 2ITER points grid XVAL and plots the wavelet function and RECFREQ.
Examples
% Example 1: a real wavelet
wname = 'db2';
% Compute the center frequency and display
% the wavelet function and the associated
% center frequency based approximation.
iter = 8;
cfreq = centfrq(wname,8,'plot')
cfreq =
0.6667
% Example 2: a complex wavelet
wname = 'cgau6';
% Compute the center frequency and display
% the wavelet function and the associated
% center frequency based approximation.
cfreq = centfrq(wname,8,'plot')
cfreq =
0.6000
| biorwavf | cgauwavf | ![]() |