suppose we have vector (v) v= [1 5 3 0 7]
and I want to find the minimum value
min(v)
I will get 0, but what I want to know is how can I print out the column number? In this case, the column number where the minimum value (0) is located is 4, but how can I make matlab display the column number to me?
Best Answer