<< momftfr Post-Processing or Help to the Interpretation plotsid >>

Time Frequency Toolbox >> Time Frequency Toolbox > Post-Processing or Help to the Interpretation > momttfr

momttfr

Time moments of a time-frequency representation.

Calling Sequence

[FM,B2]=momttfr(TFR)
[FM,B2]=momttfr(TFR,METHOD)
[FM,B2]=momttfr(TFR,METHOD,FBMIN)
[FM,B2]=momttfr(TFR,METHOD,FBMIN,FBMAX)
[FM,B2]=momttfr(TFR,METHOD,FBMIN,FBMAX,FREQS)

Parameters

TFR :

time-frequency representation ([Nrow,Ncol]=size(TFR)).

METHOD:

chosen representation (name of the corresponding M-file).

FBMIN :

smallest frequency bin (default : 1)

FBMAX :

highest frequency bin (default : Nrow)

FREQS :

true frequency of each frequency bin. FREQS must be of length FBMAX-FBMIN+1. (default : 0:step:(0.5-step) or -0.5:step:(0.5-step) depending on METHOD)

FM :

averaged frequency (first order moment)

B2 :

frequency band (second order moment)

Description

momttfr computes the time moments of a time-frequency representation.

Examples

sig=fmlin(128,0.1,0.4); tfr=tfrwv(sig);
[fm,B2]=momttfr(tfr,'tfrwv');
subplot(211); plot(fm); subplot(212); plot(B2);
freqs=linspace(0,63/128,64); tfr=tfrsp(sig);
[fm,B2]=momttfr(tfr,'tfrsp',1,64,freqs);
subplot(211); plot(fm); subplot(212); plot(B2);

See also

Authors

<< momftfr Post-Processing or Help to the Interpretation plotsid >>