I have a matrix like
1 1 1 20001 1 1 20001 1 1 20002 2 2 30002 2 2 30002 2 2 30003 3 3 50003 3 3 50003 3 3 5000
I have another matrix
2 2 2 2 2 2 2 2 2
I want a matrix from this matrix large matrix given above
2 2 2 30002 2 2 30002 2 2 3000
Can anyone help to extract the values through matlab.I am trying throuh ismember but not working.
Best Answer