Marginals and energy of a time-frequency representation
[MARGT,MARGF,E] = margtfr(TFR, T, F)
a M by N complex array: the time-frequency representation.
a real vector of size N: the time samples in sec. (default : (1:N))
a real vector of size M: the frequency samples in Hz, not necessary uniformly sampled. (default : (1:M))
a real column vector of size N: then time marginal
a real colum vectorof size M: the frequency marginal
a positive scalar: the energy of TFR
margtfr calculates the time and frequency marginals and the energy of a time-frequency representation.
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); | ![]() | ![]() |