FUNCTION REFERENCE

ind2vec

Convert one-based class indices into sparse indicator columns.

Convert one-based class indices into sparse indicator columns.

Syntax

v = ind2vec(indices,rows)

Example

ind2vec([1 2 1])

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