high = csvread('high2'); medium = csvread('medium2'); low = csvread('low2'); figure; subplot(3,1,1) plot(high(:,2), high(:,1), 'r-'); subplot(3,1,2) plot(medium(:,2), medium(:,1), 'g-'); subplot(3,1,3) plot(low(:,2), low(:,1), 'b-'); trapz(high(:,2), high(:,1)) trapz(medium(:,2), medium(:,1)) trapz(low(:,2), low(:,1))