can someone explain to me what this code means??

1 回表示 (過去 30 日間)
John Bitzios
John Bitzios 2014 年 6 月 23 日
回答済み: John Bitzios 2014 年 7 月 14 日
Its actually a guitar tuner made by Ryann Kinnett. I tried to interact with him but unfortunately his e-mail is out. Anyway, I think I know what the program does at certain lines but mostly what I am struggling to figure out is the FFT section...
go to "download submisson" at the upper right if you want to run it on matlab
Cheers!!
  2 件のコメント
Jan
Jan 2014 年 6 月 23 日
What exactly is your question? I suggest to post the corresponding line, explain, what you have understood so far and ask a specific question.
John Bitzios
John Bitzios 2014 年 6 月 23 日
I dont get the fft section... to be specific i am referring to the following lines:
NFFT=2^nextpow2(L);
fftdata=abs(fft(data,NFFT)/L;
the default code matlab gives is
NFFT = 2^nextpow2(L);
Y = fft(y,NFFT)/L;
So, the only thing that changes is the absolute value...why would he do so??

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

採用された回答

dpb
dpb 2014 年 6 月 23 日
2/L*abs(Y(1:NFFT/2+1)))
gives a one-sided (DC to Nyquist) amplitude spectrum. The above is the two-sided version from [-Nyquist:Nyquist] with DC in the middle.

その他の回答 (1 件)

John Bitzios
John Bitzios 2014 年 7 月 14 日
What about the while gcbo command???

カテゴリ

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