Daniel@0: function colors = hsvKPM(N) Daniel@0: % hsvKPM Like built-in HSV, except it randomizes the order, so that adjacent colors are dis-similar Daniel@0: % function colors = hsvKPM(N) Daniel@0: Daniel@0: colors = hsv(N); Daniel@0: perm = randperm(N); Daniel@0: colors = colors(perm,:);