Row wise operations in octave
matlab, octave
Solution
In matlab, for a 2D array `A`, this would be
max(A,[],2)
and if you want to know the index of found the value:
[value,index]=max(A,[],2)
Problem
Is there a way to perform row wise operations on matrices in octave ? I have a `(mXn)` matrix of integers, can i obtain a `m dimensional` vector where each element is the maximum element of the corresponding row ? How can i do this in octave ?