Navigation

Operators and Keywords

Function List:

C++ API

Function File: vec = ind2vec (ind)

vec2ind convert indices to vector

          EXAMPLE 1
          vec = [1 2 3; 4 5 6; 7 8 9];
          
          ind = vec2ind(vec)
          The prompt output will be:
          ans =
             1 2 3 1 2 3 1 2 3