A set of MATLAB spectral tools