about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/KPMtools/hsvKPM.m
blob: 29521ae5f8ecc1d63334d5d71cea167bfeaeee14 (plain)
1
2
3
4
5
6
7
function colors = hsvKPM(N)
% hsvKPM Like built-in HSV, except it randomizes the order, so that adjacent colors are dis-similar
% function colors = hsvKPM(N)

colors = hsv(N);
perm = randperm(N);
colors = colors(perm,:);