xxxxxxxxxx
A =
1 3 2
6 5 4
7 9 8
% Column Max value:
>> [max_values,indices] = max(A,[],1)
max_values =
7 9 8
indices =
3 3 3
% Row Max value:
>> [max_values,indices] = max(A,[],2)
max_values =
3
6
9
indices =
2
1
2