|
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:
| 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
Eric Chassande-Mottin
2005-10-26
|