finding values of a matrix

3 次查看(过去 30 天)
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