MATLAB: Access matrix location on one matrix with the data location on another matrix

matrix manipulation

I have two matrix say A & B if I have data stored in A and the data location of desired values in B how could I access Values of matrix A who are located at locations B.

Best Answer

In case if A and B are vectors ,( 1 x n ) matrices
A(B) % It will give the values of A at indexes B