Suppose you have a column vector, the values are integers(in order) but some of them are repeated, e.g. it could be [1,1,1,1,2,3,3,4,5,5,5,5,5] I want to find the indices of unique values e.g. the index of 2 and 4 in the aforementioned example. the unique function in matlab returns on top of truly unique the first value of any nonunique value, so it would return the index of the first 1, the first 3 and first 5 but I don't want those
MATLAB: Finding only unique values
unique
Related Question
- Counting proportion of all rows taken by each unique row
- Identify duplicate rows in a matrix
- Find unique values in a sequence containing at least 3 elements
- How to find the number of occurances
- How to Find Column Duplicates
- Code without using for
- Determine indices of how many times (x,y) coordinates occur in 2d vector
Best Answer