Linear Regression - Fourier Series

3 views (last 30 days)
Valerie
Valerie on 8 Apr 2011
I need to find the Fourier series coefficients of an arbitrary x,y data set over an arbitrary number of series terms using a general linear least squares technique.
the fourier series represents a function f(x) as
f(x)=a_0/2 + sum(a_n*cos(n*x) + b_n*sin(n*x))
any help would be great!
  2 Comments
Matt Tearle
Matt Tearle on 8 Apr 2011
Is this a homework problem where your answer has to be in a certain prescribed formulation, or are you trying to do an actual fitting problem?
Matt Tearle
Matt Tearle on 8 Apr 2011
(Just so I know which answer to give...!)

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!