FUNCTION REFERENCE

vec2ind

Return the first largest element index of each column.

Return the first largest element index of each column.

Syntax

indices = vec2ind(v)

Example

vec2ind([1 0;0 1])

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.