Mercurial > hg > camir-aes2014
diff toolboxes/MIRtoolbox1.3.2/MIRToolbox/num2col.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toolboxes/MIRtoolbox1.3.2/MIRToolbox/num2col.m Tue Feb 10 15:05:51 2015 +0000 @@ -0,0 +1,32 @@ +function col = num2col(k); + +switch k + case 1 + col = [0 0 1]; + case 2 + col = [1 0 0]; + case 3 + col = [0 1 0]; + case 4 + col = [0 0 0]; + case 5 + col = [1 0 1]; + case 6 + col = [1 1 0]; + case 7 + col = [0 1 1]; + case 8 + col = [1 0 .5]; + case 9 + col = [.5 1 0]; + case 10 + col = [0 .5 1]; + case 11 + col = [1 .5 0]; + case 12 + col = [.5 0 1]; + case 13 + col = [0 1 .5]; + otherwise + col = [rand rand rand]; +end \ No newline at end of file