Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 1 (최근 30일)
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