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 CenterFile Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by