Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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

Example:
maxind(#(1,3)~#(4,-1))

Result:
Contents of maxind

[1,]     2     1



(C) MD*TECH Method and Data Technologies, 05.02.2006