HOW to solve x(n) = {1, 1, 1, 1, 1, 1, 0, 0} about dft

23 ビュー (過去 30 日間)
seung woo
seung woo 2022 年 12 月 9 日
コメント済み: Walter Roberson 2025 年 1 月 3 日
HOW to solve x(n) = {1, 1, 1, 1, 1, 1, 0, 0} about dft

回答 (3 件)

Srija Kethiri
Srija Kethiri 2022 年 12 月 14 日
Hi seung,
I understand that you want to find the Discrete Fourier Transform of x(n)
Please refer to the below pointers to know more about the same:
  • You can use the MATLAB function “fft” to compute the Discrete Fourier Transform of a variable “x”.
  • The command “Y = fft(x)” computes the Discrete Fourier Transform (DFT) of "x" using a fast Fourier transform (FFT) algorithm.
  • You can refer to the below documentation link for more information on the MATLAB function “fft”- https://www.mathworks.com/help/matlab/ref/fft.html
Hope this helps!

Arnab
Arnab 2024 年 2 月 29 日
compute the 8 point dft of x(n)=[1 1 1 1 0 0 0 0]
  1 件のコメント
Walter Roberson
Walter Roberson 2025 年 1 月 3 日
x = [1 1 1 1 0 0 0 0].'
x = 8×1
1 1 1 1 0 0 0 0
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
F = fft(x)
F =
4.0000 + 0.0000i 1.0000 - 2.4142i 0.0000 + 0.0000i 1.0000 - 0.4142i 0.0000 + 0.0000i 1.0000 + 0.4142i 0.0000 + 0.0000i 1.0000 + 2.4142i
y = [sym(4),
1-(sqrt(sym(2))+1)*1i,
sym(0),
1-(sqrt(sym(2))-1)*1i,
sym(0)
1 + (sqrt(sym(2))-1)*1i,
sym(0),
1 + (sqrt(sym(2))+1)*1i]
y = 
double(y)-F
ans =
1.0e-15 * 0.0000 + 0.0000i 0.0000 + 0.0000i 0.0000 + 0.0000i 0.0000 + 0.1110i 0.0000 + 0.0000i 0.0000 - 0.1110i 0.0000 + 0.0000i 0.0000 + 0.0000i

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


Raju
Raju 2025 年 1 月 3 日

x[n]=[1,1,1,1,1,1,0,0]

  1 件のコメント
Walter Roberson
Walter Roberson 2025 年 1 月 3 日
I do not understand how this answers the question that was asked?

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

カテゴリ

Help Center および File ExchangeDiscrete Fourier and Cosine Transforms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by