Collection of Functions and Examples of Spectral Analysis in Matlab