Info

此问题已关闭。 请重新打开它进行编辑或回答。

fft algorithm for matlab

1 次查看(过去 30 天)
Naga Sai
Naga Sai 2017-6-13
评论: Naga Sai 2017-6-15
FFT Algorithm or code for matlab
  2 个评论
Adam
Adam 2017-6-13
What about it? Typing at least a sentence is usually helpful if you expect a meaningful answer.
Naga Sai
Naga Sai 2017-6-15
function Y=ft2(y) % This programme is open source code of fast fourier transform in matlab. % Where y is the input argument and p is the normalized size of the input. Let % y = [1 2 3 4 ]; % x= length(y); % m= log(x); % p= ceil(m); % To call the function use % ft2(y);
s=length(y);
l=log(s);
p=ceil(l);
Y=y;
N = 2^p;
N2=N/2;
YY = -pi*sqrt(-1)/N2;
WW = exp(YY);
JJ = 0 : N2-1;
W=WW.^JJ;
for L = 1 : p-1
u=Y(:,1:N2);
v=Y(:,N2+1:N);
t=u+v;
S=W.*(u-v);
Y=[t ; S];
U=W(:,1:2:N2);
W=[U ;U];
N=N2;
N2=N2/2;
end
u=Y(:,1);
v=Y(:,2);
Y=[u+v;u-v];

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by