How to eliminate some coordinates values?

1 回表示 (過去 30 日間)
Raja R
Raja R 2016 年 2 月 29 日
編集済み: Andrei Bobrov 2016 年 2 月 29 日
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)

回答 (1 件)

Andrei Bobrov
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,:);

カテゴリ

Help Center および File ExchangeOperating on Diagonal Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by