Help me about a code

If this code that I did it of fast Fourier transform that matlab use in y=fft(x),
X = xlsread('Arrastre.xls',1,'B1:B1441');%presiom
[N,M] = size(X);
y = zeros (N,1);
n = 0 : N-1;
for k = 0 : N-1
y(k+1) = sum(exp(-j*2*pi*n*k/N)*X);
end
y;
How is the code for DCT or Discrete Fourier transform that matlab use for y=dct(x)?

1 件のコメント

John D'Errico
John D'Errico 2016 年 9 月 18 日
Note this is absolutely not the code that MATLAB uses for fft.

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 9 月 18 日
編集済み: Walter Roberson 2016 年 9 月 18 日

0 投票

2 件のコメント

bayran arrieta
bayran arrieta 2016 年 9 月 18 日
編集済み: bayran arrieta 2016 年 9 月 18 日
Do you know what is the equation exactly used in it? thank you beforehand
Walter Roberson
Walter Roberson 2016 年 9 月 18 日
If you have the Signal Processing Toolbox then you can
dbtype dct

この質問は閉じられています。

タグ

質問済み:

2016 年 9 月 18 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by