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 ?
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With