comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function col = num2col(k);
2
3 switch k
4 case 1
5 col = [0 0 1];
6 case 2
7 col = [1 0 0];
8 case 3
9 col = [0 1 0];
10 case 4
11 col = [0 0 0];
12 case 5
13 col = [1 0 1];
14 case 6
15 col = [1 1 0];
16 case 7
17 col = [0 1 1];
18 case 8
19 col = [1 0 .5];
20 case 9
21 col = [.5 1 0];
22 case 10
23 col = [0 .5 1];
24 case 11
25 col = [1 .5 0];
26 case 12
27 col = [.5 0 1];
28 case 13
29 col = [0 1 .5];
30 otherwise
31 col = [rand rand rand];
32 end