Source: http://userpages.irap.omp.eu/~hcarfantan/Matlab/MatlabSignal.pdf