With respect to eliminating the connecting lines, sort the data by the x-coordinate. That should elimiinate them.
Meanwhile, as I explained in the post I referenced, I cannot do anything until I have at least an example of that file, and the MATLAB release/version being used to read and plot it (since there have been significant differences over the past decade).
.