Skip to content
Snippets Groups Projects
Commit 12e7ef7d authored by oboebel's avatar oboebel
Browse files

replaced && by & in line 50 and added min in 51 to allow for ambivalent index

parent 430c0fd5
No related branches found
No related tags found
No related merge requests found
......@@ -47,8 +47,8 @@ if isfield(artoaGui.editTimeOfArrival, 'axesToaFromGps') ...
continue;
end
xIndex = find(xData == current.Position(1));
if xIndex >= 0 && ~isnan(xIndex)
current.Position(2) = yData(xIndex);
if xIndex >= 0 & ~isnan(xIndex)
current.Position(2) = yData(min(xIndex));
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment