annotate toolboxes/MIRtoolbox1.3.2/MIRToolbox/num2col.m @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
rev   line source
Daniel@0 1 function col = num2col(k);
Daniel@0 2
Daniel@0 3 switch k
Daniel@0 4 case 1
Daniel@0 5 col = [0 0 1];
Daniel@0 6 case 2
Daniel@0 7 col = [1 0 0];
Daniel@0 8 case 3
Daniel@0 9 col = [0 1 0];
Daniel@0 10 case 4
Daniel@0 11 col = [0 0 0];
Daniel@0 12 case 5
Daniel@0 13 col = [1 0 1];
Daniel@0 14 case 6
Daniel@0 15 col = [1 1 0];
Daniel@0 16 case 7
Daniel@0 17 col = [0 1 1];
Daniel@0 18 case 8
Daniel@0 19 col = [1 0 .5];
Daniel@0 20 case 9
Daniel@0 21 col = [.5 1 0];
Daniel@0 22 case 10
Daniel@0 23 col = [0 .5 1];
Daniel@0 24 case 11
Daniel@0 25 col = [1 .5 0];
Daniel@0 26 case 12
Daniel@0 27 col = [.5 0 1];
Daniel@0 28 case 13
Daniel@0 29 col = [0 1 .5];
Daniel@0 30 otherwise
Daniel@0 31 col = [rand rand rand];
Daniel@0 32 end