Group: | Statistical Data Analysis |
Topic: | Basic Statistics |
See also: | max median min minind quantile |
Function: | maxind | |
Description: | maxind gives a row vector with the index of the maximum element in each column of a matrix. As usally this functionality extends to higher dimensional arrays. |
Usage: | z = maxind (x) | |
Input: | ||
x | n x p matrix | |
Output: | ||
z | p dimensional vector |
maxind(#(1,3)~#(4,-1))
Contents of maxind [1,] 2 1