Borrar filtros
Borrar filtros

finding values of a matrix

1 visualización (últimos 30 días)
johnson saldanha
johnson saldanha el 2 de Nov. de 2018
Editada: KSSV el 2 de Nov. de 2018
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.

Respuesta aceptada

KSSV
KSSV el 2 de Nov. de 2018
Editada: KSSV el 2 de Nov. de 2018
iwant = x([2 4 6],3)
If not above, you might be looking for sub2ind / ind2sub. Read about these functions.

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by