How to eliminate some coordinates values?

1 Ansicht (letzte 30 Tage)
Raja R
Raja R am 29 Feb. 2016
Bearbeitet: Andrei Bobrov am 29 Feb. 2016
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)

Antworten (1)

Andrei Bobrov
Andrei Bobrov am 29 Feb. 2016
Bearbeitet: Andrei Bobrov am 29 Feb. 2016
points = [2,4; 4,6; 6,20; 20,26; 15,6];
out = points(points(:,1) < 15,:);

Kategorien

Mehr zu Operating on Diagonal Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by