selection of rows in a matrix

조회 수: 1 (최근 30일)
sampath kumar punna
sampath kumar punna 2019년 10월 24일
답변: Alex Mcaulley 2019년 10월 24일
how to select only few rows in a matrix
36 13
9 21
23 32
35 5
3 43
in ths five elements i have select only 3 rows which is
36 13
23 32
3 43
which is row 1, row 3, row 5

채택된 답변

Alex Mcaulley
Alex Mcaulley 2019년 10월 24일
A = [36 13
9 21
23 32
35 5
3 43]
B = A([1,3,5],:)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 NaNs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by