1.I have a 1D array eg. A=[2,5,7,8,3,9…..]. Elements have been extracted from a 2d matrix eg
M= [1 5 2 17 2 2 8 9 3 4 7 5 ..............]
2. Now, I need to find the indices of each element of A in Matrix M. Like,
A[1]= [1,3; 2,1; 2,2]A[2]= [1,2;3,4]A[3]= [3,3]A[4]= [3,4].... so and so...
What is the nest way to do?
Best Answer