I have a 130×87 matrix (A) and I need to select an element from each column based on the numbers in a 1×87 matrix (B). So if the first number in matrix B is 12, I need the 12th number in the first column of matrix A.
MATLAB: Selecting an element from each column of a matrix using another matrix
columnsmatrixsub2ind
Related Question
- Delete rows from matrix
- How do i this in an efficient way
- How to add zeros column and row at the beginning of matrix
- How to index a matrix with existing array
- Vector Indexing into 2D array
- Delete rows from matrix according to another matrix
- What is the shortest way to make matrix from a vector using the 1-of-K coding scheme
Best Answer