Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to extract some rows from a matrix which crosspond to some value in another vector?

1 回表示 (過去 30 日間)
Cantor Set
Cantor Set 2020 年 2 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a matrix
D= [ 1 11 1 1; 1 2 3 4; 5 6 7 8]; V=[3 2 2];
How to extract all the rows which crossponds to v=2 ?

回答 (1 件)

Cris LaPierre
Cris LaPierre 2020 年 2 月 18 日
D(V==2,:)

Community Treasure Hunt

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

Start Hunting!

Translated by