Delete specific rows from a matrix
古いコメントを表示
Hi all,
i want to delete rows which with the values 1 in their columns, how can i do it ?
For example:
A= [7,7;2,2;1,1;3,3]
Becomes
A=[7,7;2,2;3,3]
Thank you !
P.s I've searched other posts before posting this .. couldn't find any help
採用された回答
その他の回答 (1 件)
Honglei Chen
2014 年 8 月 18 日
編集済み: Honglei Chen
2014 年 8 月 18 日
A(any(A==1,2),:) = []
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!