MATLAB supports Ocean Optics USB spectrometers. Ocean Optics manufactures a broad line of USB powered spectrometers covering the visible, near IR and UV portions of the spectrum. These spectrometers can be used from MATLAB on Microsoft  Windows  and Linux  platforms.