Sorry, I was wrong, you are working the Fourier coefficnts out the old fashioned way (nice to see). Incidentally your x axis is screwy, the first value is 11 degrees, not 0
If you've done it right you have calculated the amplitude of the sine and cosine parts of the first order, so now generate a sine wave and multiply it by a, and a cos wave and mutliply it by b, and add them up, and that should be the first order component.
You've got a - sign problem in b,
the correct formula is 0.34*cos(x)-1.83*sin(x), and it looks OK
I don't know where I got 2.24 before, that is wrong.
Cheers
Greg Locock
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.