Fmean = meanfreq(X)
Fmean = meanfreq(X, Fs)
Fmean = meanfreq(Pxx, F)
[Fmean, P] = meanfreq(...)
| Parameter | Description |
|---|---|
| X | input time-domain signal. |
| Fs | sample rate. |
| Pxx, F | power spectral density estimate and matching frequency vector. |
| Parameter | Description |
|---|---|
| Fmean | power-weighted mean frequency. |
| P | power used for the measurement. |
meanfreq computes the power-weighted mean frequency. Time-domain inputs use a rectangular-window periodogram with the input length.
[f, p] = meanfreq(sin((0:127)' * 0.1), 10);
| Version | Description |
|---|---|
| 2.0.0 | initial version |