extract max and min frequency of a spectrum

조회 수: 2 (최근 30일)
Mudhar Altikriti
Mudhar Altikriti 2024년 12월 29일
댓글: Star Strider 2025년 1월 1일
How Determine the bandwidth as well as the minimum and maximum frequency of each audio channel by writing a Matlab code?

채택된 답변

Star Strider
Star Strider 2024년 12월 29일
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
Mudhar Altikriti
Mudhar Altikriti 2025년 1월 1일

🙏👍

Star Strider
Star Strider 2025년 1월 1일
Thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2024년 12월 29일
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
Mudhar Altikriti
Mudhar Altikriti 2025년 1월 1일
편집: Mudhar Altikriti 2025년 1월 1일

Thanks. I hope it will help.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by