Command Reference : Function Reference : Function Reference: C
  
 
@cimax
Index of the maximal value in each column of a matrix.
Syntax: @cimax(m)
m: matrix
Return: vector
Returns a vector containing the index (i.e, row number) of the maximal values of each column of the matrix m.
Examples
Let ID be an identity matrix. Then
= @cimax(id)
returns a column vector whose elements are the integers 1, 2, ..., .
Cross-references
See also @cimin, @cmax, and @cmin.