There is a function in mathematica FourierCoefficient for finding fourier coefficients of a periodic function, but it requires the mathematical expression as input. What if I don't have such mathematica expression, but I have the coordinate points of the curve for one period?
Suppose I have the following coordinate points for a curve that looks approximately like a sine curve:
xCoord={{t1,x1},{t2,x2},{t3,x3}...}
yCoord={{t1,y1},{t2,y2},{t3,y3}...}
t is the parameter for the parametric curves, and x,y are the corresponding coordinates, so the coordinates are actually (x1,y1),(x1,y1),(x1,y1). It is also periodic in the y-direction, so the x-coordinates will vary between two values. How do I find the fourier coefficients for such a periodic curve?
thanks
Edit:
So after doing some rotation and translation to my curve, I get the following. I then follow the online tutorial on DFT in Mathematica:
.
The plot makes sense to me, but how do I extract various fourier coefficients from the second plot? Basically what I want to do is to compare the magnitude of various fourier coefficients to determine how closely it resembles a sine/cosine curve, so I really need to the fourier coefficients.
