meanfreq
Mean frequency of a signal spectrum.
📝Syntax
Fmean = meanfreq(X)
Fmean = meanfreq(X, Fs)
Fmean = meanfreq(Pxx, F)
[Fmean, P] = meanfreq(...)
📥Input Arguments
Parameter Description
X input time-domain signal.
Fs sample rate.
Pxx, F power spectral density estimate and matching frequency vector.
📤Output Arguments
Parameter Description
Fmean power-weighted mean frequency.
P power used for the measurement.
📄Description

meanfreq computes the power-weighted mean frequency. Time-domain inputs use a rectangular-window periodogram with the input length.

💡Examples
[f, p] = meanfreq(sin((0:127)' * 0.1), 10);
🔗See Also
medfreqbandpower
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub