length(p) gives the size of the permutation
0001 function s = length(p) 0002 % length(p) gives the size of the permutation 0003 s = length(p.array);