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
2016-9-18
Note this is absolutely not the code that MATLAB uses for fft.
回答(1 个)
Walter Roberson
2016-9-18
编辑:Walter Roberson
2016-9-18
0 个投票
2 个评论
bayran arrieta
2016-9-18
编辑:bayran arrieta
2016-9-18
Walter Roberson
2016-9-18
If you have the Signal Processing Toolbox then you can
dbtype dct
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!