% Example of reading a JCAMP file downloaded from the NIST databse at
% https://webbook.nist.gov/cgi/cbook.cgi?JCAMP=C56235&Index=19&Type=IR
clear
output = jcampread("Heptene592-77-8-IR.jdx");
xdata=output.Blocks.XData;
ydata=output.Blocks.YData;
plot(xdata,ydata,'.-')
title('Gas-phase IR spectrum of 2-Heptene')
xlabel('wavenumber, cm-1')