CSM Plot Spectra


Plot spectral data.

Basic spectra plotter functionality.

Utilises the CJSplotspectra method written by Caroline Sands.

Usage

figure = csm_plot_spectra( spectra );

figure = csm_plot_spectra( spectra, 'sample_ids', sample_ids, 'classes', classes, 'title', title );

Arguments (* = required)

VariableTypeDefault ValueDescription
*spectracsm_spectraNonecsm_spectra object containing spectral matrix.
sample_idscellNoneSample IDs for legend, default taken from spectra.
classesm*1noneSample classes for colours
titlestrsimpleTitle of plot

Returns

VariableTypeDescription
figurecsm_figurecsm_figure with some stored inputs, the handle and auditInfo.

Copyright Imperial College London 2019