Added matlab function.

Matlab function to find the period of a time series using Fourier
transform.