Results 1 to 1 of 1

Math Help - Short Program: Fourier Series Expansion on Matlab, PLEASE HELPP!!!

  1. #1
    Newbie
    Joined
    Feb 2013
    From
    New Jersey
    Posts
    1

    Short Program: Fourier Series Expansion on Matlab, PLEASE HELPP!!!

    A square wave of period 2L is a step function which is equal to 1 for x from 0 to L, then is equal to -1 for x from L to 2L.

    A square wave can be approximated by this Fourier Series expansion:
    infinity
    f(x )=(4/pi) ?((1/n)sin(npix/L))
    n=1,3,5....
    I need to write a program that prompts the user for a maximum value for n and a value for L.

    Using those values, I have to compute the Fourier Series expansion for a square wave and plot the result.
    L must be a positive number, and n must be a positive odd integer.

    If the user does not provide an acceptable number, you should detect the error, display an error message, and stop your script.

    You should evaluate the function for 500 values of x, evenly distributed from 0 to 2L.

    If someone could please help me with this, that would be great because I don't even know how to start off writing the script for this program.
    Last edited by pwayzshiv; February 20th 2013 at 06:03 PM.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 0
    Last Post: February 20th 2013, 04:03 PM
  2. [SOLVED] Fourier series expansion, need help
    Posted in the Differential Equations Forum
    Replies: 1
    Last Post: May 28th 2011, 05:23 PM
  3. Fourier Series program
    Posted in the Math Software Forum
    Replies: 0
    Last Post: February 6th 2010, 10:56 AM
  4. Fourier series expansion of f(x)=x
    Posted in the Calculus Forum
    Replies: 8
    Last Post: November 7th 2009, 07:55 AM
  5. Fourier series expansion of x^2+x
    Posted in the Calculus Forum
    Replies: 5
    Last Post: July 16th 2008, 09:56 PM

Search Tags


/mathhelpforum @mathhelpforum