Given a M x N matrix, getting a column vector of the max of each row and another with the index of such maximum is done as follows:

`h = sigmoid(a3);`

[p, i] = max(h, [], 2);

p -> column vector of the maximum values.

i -> column vector of the maximum value indexes.