Code covered by the BSD License  

Highlights from
Logiciels temps réel

Logiciels temps réel

by

 

Real-time software concerning the domains of the signal processing, feedback and regulation

[X,K]=fft_tfd(x,w)
function [X,K]=fft_tfd(x,w)

[ligne,col]=size(x);
N=ligne;
W=w*ones(1,col);
y=x.*W;
X=fft(y,N)/N;
K=(0:1:N-1)';
%XR=real(X);
%XI=imag(X);
%XMAX=max(abs(X));
%X=XR.*(abs(XR)>=abs(XI)*1e-6)+i*XI.*(abs(XI)>=abs(XR)*1e-6);
%X=X.*(abs(X)>=1e-6*XMAX);

Contact us