Logo   Information, Signal, Images et ViSion C.N.R.S.   GdR   M.E.S.R.

margtfr



Purpose
Marginals and energy of a time-frequency representation.

Synopsis
[margt,margf,E] = margtfr(tfr)
[margt,margf,E] = margtfr(tfr,t)
[margt,margf,E] = margtfr(tfr,t,f)


Description
margtfr calculates the time and frequency marginals and the energy of a time-frequency representation. The definitions used for the computation are the following:

\begin{eqnarray*}
m_f(t)=\int_{-\infty}^{+\infty} \mbox{tfr}(t,f)\ df && \mbox{\...
...{-\infty}^{+\infty} \mbox{tfr}(t,f)\ df\ dt && \mbox{\it energy}
\end{eqnarray*}


Name Description Default value
tfr time-frequency representation (M,N)  
t vector containing the time samples in sec. (1:N)
f vector containing the frequency samples in Hz, not necessary uniformly sampled (1:M)
margt time marginal  
margf frequency marginal  
E energy of tfr  



Example

         S=amgauss(128).*fmlin(128); 
         [tfr,t,f]=tfrscalo(S,1:128,8,.05,.45,128,1);
         [margt,margf,E] = margtfr(tfr); 
         subplot(211); plot(t,margt); 
         subplot(212); plot(f,margf);


See Also
momttfr, momftfr.

Eric Chassande-Mottin 2005-10-26

© GdR ISIS - Contact