Fmed = medfreq(X)
Fmed = medfreq(X, Fs)
Fmed = medfreq(Pxx, F)
[Fmed, P] = medfreq(...)
| Parameter | Description |
|---|---|
| X | input time-domain signal. |
| Fs | sample rate. |
| Pxx, F | power spectral density estimate and matching frequency vector. |
| Parameter | Description |
|---|---|
| Fmed | frequency dividing the spectral power into two equal parts. |
| P | power used for the measurement. |
medfreq computes the median frequency with rectangular spectral integration and linear interpolation between bin borders.
[f, p] = medfreq(sin((0:127)' * 0.1), 10);
| Version | Description |
|---|---|
| 2.0.0 | initial version |