I have a vector like [5 5 5 5 2 5], I would like to use logical indexing to find the index of the number (in this case 2) which is different from all others.
MATLAB: Logical indexing to find index of different number in vector
logical indexingvectors
Best Answer