1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Fourier Series/ MatLab syntax

  1. May 10, 2009 #1
    1. The problem statement, all variables and given/known data
    (a) For each function determine the first 10 non zero elements in the Fourier series representation. Use Matlab to compute the coefficients, and graph the result.

    Untitled.jpg

    2. Relevant equations
    N/A

    3. The attempt at a solution
    I noted the even symmetry of the function, and thus I do not have to compute the "bn" (sine) coefficients. Also the fact that I can compute the cosine coefficients by integrating over half of the period, ie 0--->T/2. I know how to compute the coefficients by hand, however I am required to use Matlab.

    In MatLab how would I define the function f (which appears to be a unit step function on half the period) in MatLab, with which I could multiply by cosine and then integrate appropriately?

    This is a simple problem, however Matlab has become the biggest roadblock here.

    Any help would be greatly appreciated.

    Cam
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted



Similar Discussions: Fourier Series/ MatLab syntax
  1. Matlab syntax (Replies: 2)

  2. Fourier Series (Replies: 4)

Loading...