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.

 Akzeptierte Antwort

KSSV
KSSV am 2 Nov. 2018
Bearbeitet: KSSV am 2 Nov. 2018

1 Stimme

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

Weitere Antworten (0)

Kategorien

Gefragt:

am 2 Nov. 2018

Bearbeitet:

am 2 Nov. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by