as.matrix.spectra function

Convert spectra to matrix