% Match the medusa firings with the sampling tows

% sampling run 3
for jj = 1:length(mday3)
    for ii = 1:length(day_s3)
        del_t(ii,jj) = abs(day_s3(ii) - mday3(jj));
    end
    index_m3(jj) = find(del_t(:,jj) == min(del_t(:,jj)));
end

% sampling run 4
for jj = 1:length(mday4)
    for ii = 1:length(day_s4)
        del_t(ii,jj) = abs(day_s4(ii) - mday4(jj));
    end
    index_m4(jj) = find(del_t(:,jj) == min(del_t(:,jj)));
end

% sampling run 6
for jj = 1:length(mday6)
    for ii = 1:length(day_s6)
        del_t(ii,jj) = abs(day_s6(ii) - mday6(jj));
    end
    f = find(del_t(:,jj) == min(del_t(:,jj)));
    index_m6(jj) = f(1);
end

% sampling run 7
for jj = 1:length(mday7)
    for ii = 1:length(day_s7)
        del_t(ii,jj) = abs(day_s7(ii) - mday7(jj));
    end
    f = find(del_t(:,jj) == min(del_t(:,jj)));
    index_m7(jj) = f(1);
end

