I would like to add a label including each set of peaks in the graphs below (4 labels per graph).
this was my code.
ds=table2array(HCl_DCl_Complete);
xlabel('Wavenumber $$\tilde{\nu} (cm^{-1})$$', 'Interpreter','latex')
title('In terms of Absorbance')
xlabel('Wavenumber $$\tilde{\nu} (cm^{-1})$$', 'Interpreter','latex')
title('In terms of Transmittance')
txt={'Fundamental DCl', 'Fundamental HCl', '1st Overtone DCl', '1st Overtone HCl'};
text(wn(29120:end), Trans(29120:end), txt)
sgtitle('The IR spectrum of HCl and DCl')