フィルターのクリア

calculate with Twiddle factor

23 ビュー (過去 30 日間)
Babis
Babis 2016 年 2 月 1 日
回答済み: Sulaymon Eshkabilov 2023 年 12 月 25 日
Does anybody knows how to calculate the Twiddle Factors?
For example: for n=4 you have to do the calculate Wn= e^(-j*2*π)/n and ypu have to do it for a table 4x4. table looks like..
the second is the table after calculate the 4x4
and i need this for calculate twiddle factors for n=8,16,24...
  2 件のコメント
Victor Cubedo
Victor Cubedo 2023 年 12 月 25 日
cos(2pi*n*k/N)-j*sin(2pi*n*k/N) , N = 4,8,16, k and n = rows and colums
Victor Cubedo
Victor Cubedo 2023 年 12 月 25 日
starting n and k in 0

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

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023 年 12 月 25 日
This is one of the possible solutions:
N = 4;
Twiddle_Factors = zeros(N, N);
for k = 0:N-1
for n = 0:N-1
Twiddle_Factors(k+1, n+1) = exp(-1i * 2 * pi / N * k * n);
end
end
disp('Twiddle Factors of size 4-by-4: ');
Twiddle Factors of size 4-by-4:
disp(Twiddle_Factors);
1.0000 + 0.0000i 1.0000 + 0.0000i 1.0000 + 0.0000i 1.0000 + 0.0000i 1.0000 + 0.0000i 0.0000 - 1.0000i -1.0000 - 0.0000i -0.0000 + 1.0000i 1.0000 + 0.0000i -1.0000 - 0.0000i 1.0000 + 0.0000i -1.0000 - 0.0000i 1.0000 + 0.0000i -0.0000 + 1.0000i -1.0000 - 0.0000i 0.0000 - 1.0000i

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by