I want search indexes maximum value/s in each row. If row has more than one maximum, so I want to save both indexes.
For example:
X = [5 6 8
     1 2 3
     4 4 0];
And I need indexes
inds = [1 3
        2 3
        3 1
        3 2];
I wanted to use function max but this function only saves one index.