extract max and min frequency of a spectrum

32 visualizaciones (últimos 30 días)
Mudhar Altikriti
Mudhar Altikriti el 29 de Dic. de 2024 a las 21:22
Comentada: Star Strider el 1 de En. de 2025 a las 13:30
How Determine the bandwidth as well as the minimum and maximum frequency of each audio channel by writing a Matlab code?

Respuesta aceptada

Star Strider
Star Strider el 29 de Dic. de 2024 a las 22:31
There are some Signal Processing Toolbox functions that may do what you want.
See for example the powerbw function. There are similar functions linked to it in the See Also section of its documentation.
  5 comentarios
Mudhar Altikriti
Mudhar Altikriti hace alrededor de 1 hora

🙏👍

Star Strider
Star Strider hace 36 minutos
Thank you!

Iniciar sesión para comentar.

Más respuestas (1)

Walter Roberson
Walter Roberson el 29 de Dic. de 2024 a las 22:18
You could fft(), and take the first half of the results, and find the last bin such that abs(BIN)>0 . That last bin will correspond to the highest frequency. Likewise, the first such bin (other than the very first bin) with abs()>0 corresponds to the minimum frequency.
However... fft() is prone to round-off errors, and there is a high chance of numeric noise. So you want abs(BIN)>TOLERENCE to ignore the numeric noise.
But... in practice, if the audio was not created by ifft(), then chances are high that abs(BIN) is non-zero for extended periods. Real audio seldom represents a repeating signal, and the effect of silence is to effectively add a sinc() signal to the fft, so the high frequency bins of fft of real audio almost always have non-zero content.
  1 comentario
Mudhar Altikriti
Mudhar Altikriti hace alrededor de 1 hora
Editada: Mudhar Altikriti hace alrededor de 1 hora

Thanks. I hope it will help.

Iniciar sesión para comentar.

Categorías

Más información sobre Spectral Measurements en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by