close all
clear all

UHS_filenm = 'UHS_Thursday_Deploy1.dat';

SM_filenm = 'ShipMotions_Thursday_Dive1.dat';


UHS_data = readtable(UHS_filenm);
SM_data = readtable(SM_filenm);

UHS_t = datetime(UHS_data.Var1, 'ConvertFrom', 'posixtime');
SM_t = datetime(SM_data.Var1, 'ConvertFrom', 'posixtime');


figure
ah1 = subplot(3,1,1)
plot(UHS_t,UHS_data.Var4)
ylabel('Tension (t)');
grid on;


ah2 = subplot(3,1,2)
plot(UHS_t,UHS_data.Var3)
ylabel('Wire Speed (m/s) (positive is paying out');
grid on;

ah3 = subplot(3,1,3)
plot(UHS_t,UHS_data.Var2)
ylabel('Wire Out (m)');
grid on;

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

f