フィルターのクリア

What is the code for generating X(k) from given X(n) = [1 2 3 4] using Fast Fourier Transform?

9 ビュー (過去 30 日間)
There is this sequen of X(n) = [1 2 3 4] how do i get the X(k) using FFT function? What is the code for the function? And also the code for IFFT. Thank you

採用された回答

Chunru
Chunru 2021 年 7 月 5 日
x = [1 2 3 4];
xfft = fft(x)
xfft =
10.0000 + 0.0000i -2.0000 + 2.0000i -2.0000 + 0.0000i -2.0000 - 2.0000i
y = ifft(xfft)
y = 1×4
1 2 3 4

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by