Using spectra to calculate strength of reflections and losses in passive cavities.The wavelength, reflection spectrum and transmission spectrum should be in the first 3 columns of an Excel file, which is selected when the cavity.m Matlab file is run.