Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Numerical difference between fft and exp
Posted:
Jan 31, 2013 12:15 AM


Hi,
Also, why do I get a difference around 1e3 (small but much too large) between H_orig and H_orig2?
b = [1 0.75 0.5]; N=1000; H_orig = fft([b.' ; zeros(Nlength(b), 1)]); w = linspace(0, 2*pi, N); H_orig2 = b(1) * exp(1i*w*0) + b(2) * exp(1i*w*1) + b(3) * exp(1i*w*2);
I would exprect a result up to numerical precision.
Thanks, Peter



