I have a problem regarding finding a maximum value from my matrix (largest element in the row)
I have matrix A shown bellow
I know that I can use
M=max(A,[],2)
Then I will get matrix M such that
But the answer I want is not that, what I want is that . The one that I want is
The answer that I want is the maximum value of each row ignoring the negativity of each value like shown in the matrix above.
I hope my question is clear enough.
Best Answer