Error when attempting to assign TOA's to a Sound Source
The error seems to stem from having multiple SAT fixes on the same day. ARTOA treats SAT dates as integers (i.e., full days only). The error is located in
\lib\+artoa\+controller\+edit\+timeOfArrival\plotSoundsourceToaFromGps.m
Specifically,
line 49 find(xData == current.Position(1));
produces 2 results, which the && operator in the next line
line 50 if xIndex >= 0 && ~isnan(xIndex)
doesn’t like.
A quick fix is to replace lines 50 and 51 with
line 50 if xIndex >= 0 & ~isnan(xIndex)
line 51 current.Position(2) = yData(min(Index));