Margenau-Hill time-frequency distribution
[TFR,T,F] = tfrmh(X) [TFR,T,F] = tfrmh(X, T) [TFR,T,F] = tfrmh(X, T, N) [TFR,T,F] = tfrmh(X, T, N, TRACE) [TFR,T,F] = tfrmh(...,'plot')
A Nx elements vector (auto-MH) or a Nx by 2 array signal (cross-MH).
a real Nt vector with elements in [1 Nx] : time instant(s) (default: 1:NX).
a positive integer: the number of frequency bins (default:NX). For faster computation N should be a power of 2.
A boolean (or a real scalar) if true (or nonzero),the progression of the algorithm is shown (default : %f).
if one input parameter is 'plot', tfrqview is called and the time-frequency representation will be plotted.
A real N by Nt array: the time-frequency representation.
A N vector of normalized frequencies.
tfrmh computes the Margenau-Hill distribution of a discrete-time signal X, or the cross Margenau-Hill representation between two signals.
Interactive use
Non interactive use
N = 128; sig = fmlin(N,0.1,0.4); [TFR,T,F] = tfrmh(sig,1:N,N); clf; gcf().color_map = jetcolormap(128); grayplot(T,F,TFR'); | ![]() | ![]() |