a) Write a Matlab function, which accepts the following inputs(adsbygoogle = window.adsbygoogle || []).push({});

-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.

This function should produce an output x[t][/n]( should be a vector x with length equal to the length of t containing values of xn at the times indicated by t.

this is the code i have come up with so far.

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;

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Truncated Fourier series analysis in Matlab

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - Truncated Fourier series | Date |
---|---|

LC circuits in series with Diodes | Mar 5, 2018 |

Using the Fourier transform to interpret oscilloscope data | Nov 30, 2016 |

Arguments of the FT and DTFT | Nov 22, 2016 |

Continuous and discrete spectra | Oct 27, 2016 |

**Physics Forums - The Fusion of Science and Community**