Simple Fourier Transform with Matlab - More Accurate
% SimpFourierTransform2
clear Q, f;
f=14;
h = @(x,y) cos(2*pi*x*f).*exp(-2*pi*i*x.*y);
mintime=-10;
maxtime=10;
for f=1:20;
Q(f) = quadgk(@(x)h(x,f),mintime,maxtime);
end
stem(round(abs(Q)));
%stem(abs(Q))
0 comments:
Post a Comment