MATLAB: How to flip and combine two spectra for comparison

plotplotting

I want to compare two spectra. What I do is multiply the Y axis of one of the spectra with -1 and then plot both the spectra on the same figure. It is good to compare but look bad while I present. Because the intensity axis of one spectra appear negative values. Is there any other way to code so that I can get spectra look like the one in the attached image?
This example I downloaded from internet. Here Y axis of both the spectra shows the real intensity.

Best Answer

You could normalize each spectrum perhaps.
plot(time, spectrum1 ./ max(spectrum1), time, -spectrum2 ./ max(spectrum2))