added spectral base matlab codes