![]() Then I checked these two expressions: > points(1) ~= vertex2(1) ![]() As you can see, the first (or second?) pair of has been eliminated, but not the second one. ![]() ![]() Points = points((points(:,1) ~= vertex2(1)) | (points(:,2) ~= vertex2(2)), :) Īfter doing that, we have this unexpected outcome: > points It should be done by the below commands: points = points((points(:,1) ~= vertex1(1)) | (points(:,2) ~= vertex1(2)), :) Two points ( vertex1 and vertex2) should be eliminated from the result. Obj.modifiedVGVertices(1,:), obj.modifiedVGVertices(2,:). In the following code, intersections function gets the intersection points: = intersections(. The problem is that when it comes to check whether those points are in the matrix, MATLAB can't recognize them in the matrix although they exist. I am writing a program where I need to delete duplicate points stored in a matrix.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |