[ind,N] = vec2ind(vec)
takes a matrix of vectors, each containing a single 1 and returns the
indices of the ones, ind, and the number of rows in
vec, N.
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.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.