load \\multiproc\science_share\Underway_data\AR29_underway

transect_start = datenum({...
%'2018/04/17 13:15:04'... %use this if you want to go all the way back to shore
'2018/04/17 05:00:00'...
'2018/04/18 03:10:04'...
'2018/04/18 10:30:04'...
'2018/04/18 23:30:00'...
'2018/04/19 7:30:00'...
'2018/04/19 13:30:00'...
'2018/04/19 23:01:49'...
'2018/04/20 04:18:00'...
'2018/04/20 10:00:00'...
'2018/04/20 17:20:00'...
'2018/04/21 06:35:00'...
'2018/04/21 19:00:00'...
'2018/04/22 07:00:00'...
'2018/04/22 19:00:00'...
'2018/04/22 23:40:00'...
'2018/04/23 09:00:00'...
'2018/04/24 01:00:00'...
'2018/04/24 09:00:00'...
'2018/04/24 16:12:00'...
'2018/04/25 01:20:00'...
'2018/04/25 07:45:00'...
'2018/04/25 16:25:00'...
'2018/04/26 10:00:00'...
'2018/04/26 19:20:00'...
'2018/04/27 00:00:00'...
'2018/04/27 11:30:00'...
'2018/04/28 08:00:00'...
'2018/04/29 02:00:00'...
'2018/04/29 06:30:00'...
'2018/04/29 11:00:00'...

    });

for ii = 1:length(transect_start)-1
    aa{ii} = find(mdate >=transect_start(ii) & mdate < transect_start(ii+1));
end

figure
plot(mdate(aa{1}), lat(aa{1}), 'linewidth', 2), hold on
for ii = 2:length(transect_start)-1
    plot(mdate(aa{ii}), lat(aa{ii}), 'linewidth', 2)
end;
datetick