% myinterp.m
% interpolates data points for seahorse track

% profiles where we have a location
ind = [1 14 22 23 46 72];

Lat(ind) = data(:,1);
Lon(ind) = data(:,2);

for ii = 1:5
%    length(Lon(ind(ii):ind(ii+1)))
%    length([Lon(ind(ii)):(Lon(ind(ii+1)) - Lon(ind(ii)))/(ind(ii+1)-ind(ii)):Lon(ind(ii+1))])
    Lon(ind(ii):ind(ii+1)) = [Lon(ind(ii)):(Lon(ind(ii+1)) - Lon(ind(ii)))/(ind(ii+1)-ind(ii)):Lon(ind(ii+1))];
    Lat(ind(ii):ind(ii+1)) = [Lat(ind(ii)):(Lat(ind(ii+1)) - Lat(ind(ii)))/(ind(ii+1)-ind(ii)):Lat(ind(ii+1))];
end
