find the dominant frequency with the use of the command max

3 ビュー (過去 30 日間)
Passband  Modulation
Passband Modulation 2012 年 10 月 4 日
I have a file named “message.txt” containing the waveform of a voice message embedded in a sinusoid with frequency of 220 Hz, and the sampling frequency is 22000 Hz.
load the file, and the speech heard
load message.txt
soundsc(message, 22000)
the spectrum of message,where the magnitude plot of the Fourier transform for message versus frequency in Hz, is observed using the following code
[freq_resp,freq_index]=freqz(message,1,100000,22000);
plot(freq_index,abs(freq_resp))
how can i find the dominant frequency of message with the use of the command max?
i tried
C = max(freq_index)
it does not work

回答 (1 件)

Sachin Ganjare
Sachin Ganjare 2012 年 10 月 4 日
  1 件のコメント
Passband  Modulation
Passband Modulation 2012 年 10 月 4 日
it does really help... anyway thx for ur kind reply

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

カテゴリ

Help Center および File ExchangeSimulation, Tuning, and Visualization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by