Results 1 to 3 of 3

Math Help - Plotting fourier series approximation of F(t)

  1. #1
    Newbie
    Joined
    May 2007
    Posts
    6

    Plotting fourier series approximation of F(t)

    Hi all,

    I'm new to matlab and have a question for a class i'm taking. I've worked out everything except for the last part - which i'm absolutely stuck on...

    F(t) is the function;

    f(t) = t-1 for 1<t<2
    = t for 0 <t<1

    I had to determine a fourier representation of this analytically which is all done, but now I have absolutely no idea how to do a fourier series approximation in Matlab. I've checked countless sites and books but they typcailly go into heaps of detail and I get lost after a few lines of code...

    Any help would be appreciated.

    Cheers,
    Mike
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Global Moderator

    Joined
    Nov 2005
    From
    New York City
    Posts
    10,616
    Thanks
    10
    Quote Originally Posted by mslodyczka View Post
    Hi all,

    I'm new to matlab and have a question for a class i'm taking. I've worked out everything except for the last part - which i'm absolutely stuck on...

    F(t) is the function;

    f(t) = t-1 for 1<t<2
    = t for 0 <t<1
    If you define f(t) = f(t+2) you make a periodic function.

    The Fourier series shall be only of cosines since f is even.
    Thus, it would look like, f(t) = \sum_{n=0}^{\infty}a_n \cos \frac{\pi n t}{2} where the coefficients a_n are determined by formula.

    If N is a large number then \sum_{n=0}^N a_n \cos \frac{\pi n t}{2} will approximate f(t).
    Take something like N=50,100,200 and see how the curves approximate the function.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    May 2007
    Posts
    6
    Hi,
    Thanks. I get that part, what i'm stuck with is actually coming up with the Matlab code to get the coefficients and then plotting the approximation.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 2
    Last Post: January 3rd 2012, 11:53 AM
  2. Complex Fourier Series & Full Fourier Series
    Posted in the Calculus Forum
    Replies: 1
    Last Post: December 9th 2009, 06:39 AM
  3. Matlab: Plotting Fourier-Series
    Posted in the Math Software Forum
    Replies: 3
    Last Post: May 18th 2009, 06:17 AM
  4. MATLAB Plotting Fourier series coefficients
    Posted in the Math Software Forum
    Replies: 1
    Last Post: January 25th 2009, 01:29 PM
  5. Fourier Series Approximation
    Posted in the Calculus Forum
    Replies: 17
    Last Post: August 20th 2008, 09:55 AM

Search Tags


/mathhelpforum @mathhelpforum