as_spectra.matrix function

Convert matrix to spectra