% SimpFourierTransform1
% Simple sin function with a frequency of 10 Hz, sin(2*pi*t*10)
% Multiply the function with basis transformer and integrate for a time interval
h = @(x,y) sin(2*pi*x*10).*exp(-2*pi*i*x.*y);
for f=1:20;
Q(f) = quad(@(x)h(x,f),0,2);
end
stem(abs(Q))
0 comments:
Post a Comment