I want to get the indices of similar values in a vector. For example, I have a vector x=[1 1 2 2 3]. The output should be something like this: indices = 1,2 & 3,4
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
1 Comment
Jan (view profile)
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/351128-how-to-find-indices-of-similar-values-in-a-vector#comment_473672
Sign in to comment.