フィルターのクリア

Real-time Spectrum Analysis

20 ビュー (過去 30 日間)
Parth Tarabadkar
Parth Tarabadkar 2018 年 10 月 17 日
コメント済み: Honglei Chen 2018 年 11 月 15 日
I want to develop a Real-time Audio Spectrum Analyzer, input to which, needs to be given through a microphone. I know that Spectral Analysis can be done in MATLAB, but can this be done for live (real-time) input? How?

採用された回答

Honglei Chen
Honglei Chen 2018 年 10 月 17 日
You can use Spectrum Analyzer to do this.
https://www.mathworks.com/help/dsp/ref/dsp.spectrumanalyzer-system-object.html
Look at the examples in the above page. The signal are fed into the analyzer in batch mode. You can just replace those signals with the one you get from the microphone.
HTH
  6 件のコメント
Parth Tarabadkar
Parth Tarabadkar 2018 年 11 月 15 日
編集済み: Parth Tarabadkar 2018 年 11 月 15 日
By compare, I mean that if the input audio signal has a frequency component of 500 Hz and the corresponding gain is +2dB, then I want this value (the number 2) in a variable (say x), so that it could be further compared with any other number which we provide explicitly (say 1), i.e calculate the difference between x and 1 in real time.
Honglei Chen
Honglei Chen 2018 年 11 月 15 日
In that case, I'd suggest you to use pspectrum instead of spectrum analyzer to retrive the number.
HTH

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpectral Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by