suppose I have a matrix [1,2,3,4; 5,6,7,8; 1,2,3,4; 5,6,7,8] and a select vector that will pick an element from each row of the matrix [1;2;2;3] (so it will pick first column element from the first row, second column element from the second row, second column element from the third row and third column element from the fourth row)
How do I code so that the vector "pick" elements from the matrix and the result becomes [1;6;2;7]
Best Answer