Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

fft algorithm for matlab

1 visualización (últimos 30 días)
Naga Sai
Naga Sai el 13 de Jun. de 2017
Comentada: Naga Sai el 15 de Jun. de 2017
FFT Algorithm or code for matlab
  2 comentarios
Adam
Adam el 13 de Jun. de 2017
What about it? Typing at least a sentence is usually helpful if you expect a meaningful answer.
Naga Sai
Naga Sai el 15 de Jun. de 2017
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];

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by