- #1
mikeph
- 1,235
- 18
Hi,
Say I have a 10x10 matrix, is there a simple code to finding the indices of the maximum value?
I'm trying to use max() but there doesn't appear to be any option of actually returning the index, rather than the value. I don't need the value, just the position.
Thanks,
Mike
Say I have a 10x10 matrix, is there a simple code to finding the indices of the maximum value?
I'm trying to use max() but there doesn't appear to be any option of actually returning the index, rather than the value. I don't need the value, just the position.
Thanks,
Mike