A Matlab script that with Discrete Fourier Transform calculates the Fourier series corresponding to a finite length T signal and the inverse of the given Fourier series.