close all
clear all

load PowerHistory.mat
load WaveHistory.mat

hours = 1:21;

figure('Position',[196  79  1004  598],'PaperOrientation', 'landscape','PaperPositionMode','manual','PaperType','usletter','PaperPosition',[0 0 11 8.5]); 
plot(hours-1,Pow_history(hours),hours-1,Pb_history(hours),'LineWidth',2);
set(gca,'FontSize',14);
legend('Electrical Power Generated (W)','Absorbable Power (W)');
xlabel('Hour');
ylabel('Mean Power (W)');
title('Generated and Absorbable Power during Jan 5th, 2012 Deployment. From 1100 PDT');

print('-dpdf','PowerHistory');
print('-djpeg','PowerHistory');


figure('Position',[196  79  1004  598],'PaperOrientation', 'landscape','PaperPositionMode','manual','PaperType','usletter','PaperPosition',[0 0 11 8.5]); 
plot(hours-1,100*Pow_history(hours)./Pb_history(hours),'LineWidth',2);
set(gca,'FontSize',14);
xlabel('Hour');
ylabel('%');
title('Percent of Absorbable Power Converted to Electricity during Jan 5th, 2012 Deployment. From 1100 PDT');

print('-dpdf','PowerPercentHistory');
print('-djpeg','PowerPercentHistory');