view 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
line wrap: on
line source
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