delete matrix row with certain value

 採用された回答

the cyclist
the cyclist 2014 年 11 月 11 日

0 投票

M = magic(3);
M(any(M==2,2),:) = []

その他の回答 (1 件)

Adam
Adam 2014 年 11 月 11 日

0 投票

A = [2 3 4 5; 6 7 8 9; 2 1 1 1; 3 3 3 3];
A( any(A == 2, 2 ),: ) = [];

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

タグ

質問済み:

2014 年 11 月 11 日

コメント済み:

2014 年 11 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by