close all
clear all

load('2025_HourlyAverages.mat')
figure
plot(HourlyData.Time_DateNum,HourlyData.PC_Power)
datetick('x')
xlabel('date');
ylabel('Power Captured (W)');
grid on;
title('2025 Hourly Averages');


filenm = '2025.06.08T15.39.20';
load([filenm  '.mat']);

figure
ah1 = subplot(3,1,1);
plot(Time_DateNum,PC_Voltage)
xlabel('Time');
ylabel('Battery Voltage');
grid on;
datetick('x')
title(['Buoy Data From: ' filenm])

ah2 = subplot(3,1,2);
plot(Time_DateNum,PC_BattCurr)
xlabel('Time');
ylabel('Battery Current (A)');
grid on;
datetick('x')

ah3 = subplot(3,1,3);
plot(Time_DateNum,PC_Voltage.*PC_BattCurr)
xlabel('Time');
ylabel('Battery Power (W)');
grid on;
datetick('x')


linkaxes([ah1 ah2 ah3],'x');


