How to eliminate some coordinates values?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have coordinates (x,y) as point1 (2,4) point2 (4,6) point3 (6,20) point4 (20,26) point5 (15,6) i want to eliminate the x coordinates only, whose values are greater than or equal to 15 not for y coordinates. so, the answer is to be point1 (2,4) point2 (4,6) point3 (6,20)
댓글 수: 0
답변 (1개)
Andrei Bobrov
2016년 2월 29일
편집: Andrei Bobrov
2016년 2월 29일
points = [2,4; 4,6; 6,20; 20,26; 15,6];
out = points(points(:,1) < 15,:);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!