ind2vec
(To be removed) Convert indices to vectors
ind2vec will be removed in a future release. For more information,
see Transition Legacy Neural Network Code to dlnetwork Workflows.
For advice on updating your code, see Version History.
Description
takes
a row vector of indices, vec = ind2vec(ind)ind, and returns a sparse matrix of vectors,
vec, containing a 1 in the row of the index they
represent, as indicated by ind.
ind2vec and vec2ind allow indices to be
represented either by themselves, or as vectors containing a 1 in the row of the index they
represent.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006aSee Also
onehotencode | Time Series Modeler | fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork