Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Fourier Series representation for signals

  1. Dec 6, 2008 #1
    1. The problem statement, all variables and given/known data
    a) Write a Matlab function, which accepts the following inputs

    -a finite set of Fourier series coefficients

    -the fundamental period T of the signal to be reconstructed

    -a vector t representing the times for which the signal will be reconstructed


    2. Relevant equations



    3. The attempt at a solution
    function fourier1=f(a,T,t)
    fourier1=zeros(length(a),1);
    for n=1:length(a)
    fourier1(n)=(a(n)*exp((i*(2*pi/T)*n*t)));
    end;
     
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

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