I have collected spectral data from two instruments and stitched the spectra together (simple concatenation). I want to make a plot tht shows how the spectra have been stitched together.
Spectrum 1 ranges from 180-1050, and Spectrum2 ranges from 120-1200. When I plot them, the lines overlap because the x values are repeated in each range.
How can I make Spectrum2 plot after Spectrum1 on it's own x-values?
This is what I have written:
data = xlsread('_______','Load_LL','D1:SJE4');
x = data(1,:);
PC1 = data(2,:);
PC2 = data(3,:);
PC3 = data(4,:);
set(h1,'FontName','Times New Roman','FontSize',10);
And I get this:
I want something that looks more like this:
I tried plotting each spectrum as a subplot, which got me closer to my goal, but the two spectra should not take up the same space on the x axis (Spectrum1 has farrrr more variables).
How can I plot each y value with it's associated x vlue without getting overlap between repeted x values?