% WPread.m
% Reads .boat waypoint file types and stores the values in a vector

fname   = 'BOAT';
fext    = '.boat';

fid     = fopen(strcat(fname,fext), 'r');
data    = fread(fid, inf, 'float64');
fclose(fid);

lat     = data(1:2:end);
long    = data(2:2:end);