haasejos
2013-03-21 15:41:23 UTC
hello,
for signalanalysis I would like to use discrete Fourier transform (dft). To
see, how it works, I use the simple example below. Why is *XfA =
abs(Xf)*2/n* respectively why is XfA = abs(Xf) wrong?
clear; clc; xdel;
function y = f(x);
y = sin(x);
endfunction;
n = 200;
x=linspace(0,2*%pi,n);
y=f(x);
mat = [x',y'];
//disp(mat);
//plot2d(x , y);
//xtitle('DATA','n''','y''');
Xf=dft(y,-1);
XfA = abs(Xf)*2/n;
plot2d3([1:n/2]',XfA(1:n/2));
--
View this message in context: http://mailinglists.scilab.org/discrete-Fourier-transform-tp4026318.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
for signalanalysis I would like to use discrete Fourier transform (dft). To
see, how it works, I use the simple example below. Why is *XfA =
abs(Xf)*2/n* respectively why is XfA = abs(Xf) wrong?
clear; clc; xdel;
function y = f(x);
y = sin(x);
endfunction;
n = 200;
x=linspace(0,2*%pi,n);
y=f(x);
mat = [x',y'];
//disp(mat);
//plot2d(x , y);
//xtitle('DATA','n''','y''');
Xf=dft(y,-1);
XfA = abs(Xf)*2/n;
plot2d3([1:n/2]',XfA(1:n/2));
--
View this message in context: http://mailinglists.scilab.org/discrete-Fourier-transform-tp4026318.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.