<< htl Post-Processing or Help to the Interpretation midpoint >>

stftb >> stftb > Post-Processing or Help to the Interpretation > margtfr

margtfr

Marginals and energy of a time-frequency representation

Calling Sequence

[MARGT,MARGF,E] = margtfr(TFR, T, F)

Parameters

TFR :

a M by N complex array: the time-frequency representation.

T :

a real vector of size N: the time samples in sec. (default : (1:N))

F :

a real vector of size M: the frequency samples in Hz, not necessary uniformly sampled. (default : (1:M))

MARGT :

a real column vector of size N: then time marginal

MARGF :

a real colum vectorof size M: the frequency marginal

E :

a positive scalar: the energy of TFR

Description

margtfr calculates the time and frequency marginals and the energy of a time-frequency representation.

Examples

S = altes(128,0.05,0.45); 
[TFR,T,F] = tfrscalo(S,1:128,8,0.05,0.3,128);
[MARGT,MARGF,E] = margtfr(TFR);
clf
subplot(211); plot(T,MARGT); 
subplot(212); plot(F,MARGF);

See also

Authors


Report an issue
<< htl Post-Processing or Help to the Interpretation midpoint >>