フィルターのクリア

Deleting rows from array

1 回表示 (過去 30 日間)
Rachel Ramirez
Rachel Ramirez 2020 年 12 月 3 日
回答済み: David Hill 2020 年 12 月 3 日
If I have an array with 20 rows and 3 columns but I want to delete any row in which the 3rd column is greater than 5, how would I do it?

採用された回答

David Hill
David Hill 2020 年 12 月 3 日
a(a(:,3)>5,:)=[];

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by