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