close all
clear all

path = 'X:\707976_EPBuoyPrototypeAndTesting\Deployments\2019-02-05-Deployment\DecodedResults\';

files = dir([path '2019.03.*raw.mat']);

figure

for i = 1:length(files)
    load([path files(i).name])
    ah1 = subplot(2,1,1);
    plot(TC_Time,TC_CommsTimeOut,'b-');
    hold all

    ah2 = subplot(2,1,2);
    plot(TC_Time,TC_PowerTimeOut,'b-');
    hold all  

    disp(num2str(i));
end

ah1 = subplot(2,1,1);
datetick('x');
grid on
ylabel('Comms Timeout Ctr');
ah2 = subplot(2,1,2);
ylabel('Power Timeout Ctr');
datetick('x');
grid on

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