필터 지우기
필터 지우기

finding values of a matrix

조회 수: 1 (최근 30일)
johnson saldanha
johnson saldanha 2018년 11월 2일
편집: KSSV 2018년 11월 2일
how to find the values of a particular column corresponding to the known index numbers? for ex: the matrix is x and the index numbers are 2,4,6 and in the third coulumn i need to find the values corresponding to those index numbers.

채택된 답변

KSSV
KSSV 2018년 11월 2일
편집: KSSV 2018년 11월 2일
iwant = x([2 4 6],3)
If not above, you might be looking for sub2ind / ind2sub. Read about these functions.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by