Hello, I have two matrices of different sizes and I want to find the indices for the elements in the bigger matrix that match with those in the smaller one, allowing for repetition? A=[1 1 1 2 3 5 5 1 ] B=[1 2 5] I want to get C=[1 2 3 4 6 7 8]
MATLAB: Hello, I have two matrices of different sizes and I want to find the indices for the elements in the bigger matrix that match with those in the smaller one, allowing for repetition
indicesrepeated positiontwo matrices
Related Question
- Count the number of occurances of an element using accumarray
- How to compute Permutation without repetition
- How to generate two subsets randomly from a matrix without repetition
- How to get a ‘random index’ of unique elements in a matrix rather than first/last index
- How to count the number of vector elements without repetition
- How to find the number of times an elements occurs in an array and copy to another array with same index
- An efficient function for k-th combination with no repetition
Best Answer