isempty(p) --- check if the permutation p is of size 0
0001 function yn = isempty(p) 0002 % isempty(p) --- check if the permutation p is of size 0 0003 s = size(p); 0004 yn = s(1)==0;