% Test reading back noise-subtraction result from XML


clear;

x12nsxx = ao('x12nsxx.xml');
x12xx   = ao('x12xx.xml');
x12fxx  = ao('x12fxx.xml');

figure
plot(x12nsxx.hist)

figure
plot([x12xx x12nsxx])
ltpda_allxaxis(0.001, 1);
subplot(3,1,1:2)
legend('lpsd(X12)', 'lpsd(X12 with noise subtracted)');


