when i write "help fft" i get this formula
X(k) = sum x(n)*exp(-j*2*pi*(k-1)*(n-1)/N), 1 <= k <= N
how to write this formula in matlab comand and get the result of this. where i have a variable fs = formula sampling, and x = data in time domain?
i need your help thankyou

 採用された回答

Jan
Jan 2017 年 8 月 5 日
編集済み: Jan 2017 年 8 月 5 日

1 投票

What exactly is the problem? What have you tried so far?
for n = 1:N
X_k = sum(x(n) * exp(-2j * pi * (k-1) * (n-1)/N);
end

3 件のコメント

silmi latifa
silmi latifa 2017 年 8 月 5 日
thanks about your answer, i'm so helpfull of these. but, can you explain me, what the "-2j" "N" and "k"
i want to comprehend about FFT more.
Jan
Jan 2017 年 8 月 5 日
編集済み: Jan 2017 年 8 月 5 日
"-2j" is munus 2 times the imaginary unit sqrt(-1).
Please read e.g. WikiPedia:FFT to learn how to program an FFT. This is more efficient then rephrasing the exhaustive explanation in my words, and the topic of the forum is implementations in Matlab, not general algorithms.
silmi latifa
silmi latifa 2017 年 8 月 5 日
ok, thanks alot :) have a nice day

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Fourier Analysis and Filtering についてさらに検索

質問済み:

2017 年 8 月 5 日

コメント済み:

2017 年 8 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by