% -*- texinfo -*- % @deftypefn {Function File} {@var{ind}} = vec2ind (@var{vector}) % @code{vec2ind} convert vectors to indices % % % @example % 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 % @end example % % @end deftypefn