fourier series analysis matlab code