Suppose I have a vector A = [5 6 4 1 1 1]; I'd like to find the index of a minimum value. If I try min function in a regular way:
it would give me somethin like:
But the result that I'm trying to get should be:
How do I search for a minimum value starting from the end of the vector without flipping it?