How to combine two matrix based on position and find the corresponding element?
1 view (last 30 days)
I am having two matrix. one matrix element represent the position whereas other matrix contine the elements. Now i have to merge these two matrix based on position and to find corresponding element.
a=[ 5 6 3 7]
b=[011 101 010 001 100 110 111]
c=[100 110 010 111]
i need to apply this problem to a larger n*m matrix.