フィルターのクリア

How to remove rows in a matrix based on the first column

1 回表示 (過去 30 日間)
MILLER BIGGELAAR
MILLER BIGGELAAR 2020 年 3 月 29 日
回答済み: Rik 2020 年 3 月 29 日
Hey Guys,
I have a Numeric matrix of 224836 rows by 3 columns and I need to be able to filter out some of thge data points which are incorrect.
The First column has a set of data points less than 300000 and I need to be able to delete not only those points but the whole rows that they are in so that I can plot a 3d graph, so far I have only been able to filter out the first column and second as they are very similar numbers (most above 550000) but the third is depth in metres and only only has a range of 100.
Please help!
(I am using 2019a)

採用された回答

Rik
Rik 2020 年 3 月 29 日
I guess this is what you need:
data=600000*rand(224836,3);
L=data(:,1)<=300000
data(L,:)=[] ;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by