| Neural Network Toolbox | Search  Help Desk | 
| ind2vec | Examples See Also | 
vec = ind2vec(ind)
ind2vec and vec2ind allow indices to either be represented by themselves, or as vectors containing a 1 in the row of the index they represent.
ind2vec(ind) takes one argument,
ind - Row vector of indices.
ind.
Here four indices are defined and converted to vector representation.
ind = [1 3 2 3] vec = ind2vec(ind)
vec2ind