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

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 件)

この質問は閉じられています。

質問済み:

2020 年 2 月 18 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by