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