When doing a discrete fourier transform on some data using matlab's fft function, its output is a set of fourier coefficients but I was wondering how do I go about converting these into an and bn so I can reconstruct the signal using sines and cosines.
E.g. I'd have a for loop that continually adds up ai cos(ix) + bisin(ix), where i = 1:N
No comments:
Post a Comment