function [new_matrix] = delete_coincident_points(M) % removes coincident points from a matrix (M) % deletes all coincident points % Created by Jim Work, University of South Carolina, August 13, 2003 M = remindex(M); M = unique(M,'rows'); M = addindex(M); new_matrix = M;