.. highlightlang:: us .. _maxi: maxi ==== .. index:: maxi .. us.tag maxi ENGLISH :ref:`maxi` finds the index of the largest element of a vector or returns an index vector with indices of the largest element of each matrix column. .. function:: r = maxi(m) .. us.return **Return Value** *r* is a scalar, if *m* is a vector. *r* is a row vector if *m* is a matrix. The column vector contains indices of the largest element of each matrix column. .. us.params **Parameters** .. uparam:: m *m* is a real, complex or string matrix. .. us.comment **Comment** For complex matrices *m*, the function compares the absolute values. .. seealso:: :ref:`overview-mathematic`, :ref:`mini`, :ref:`max` :sub:`id-529432`