Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
Cantor Set
Cantor Set le 18 Fév 2020
Clôturé : MATLAB Answer Bot le 20 Août 2021
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 ?

Réponses (1)

Cris LaPierre
Cris LaPierre le 18 Fév 2020
D(V==2,:)

Community Treasure Hunt

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

Start Hunting!

Translated by