Logo white

codebase / stim-matlab

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • stim-matlab
  • rtsClass2Color.m
  • initial commit of the new Matlab repository
    8be1ab93
    David Mayerich authored
    2015-04-07 13:24:08 -0500  
    Browse Code ยป
rtsClass2Color.m 278 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
function C = rtsClass2Color(classes, classList, colorList)

C = zeros(length(classes), 3);

for i = 1:length(classes)
    
    for c = 1:length(classList)
        
        if classes(i) == classList(c)
            C(i, :) = colorList(c, :);
        end
        
    end
    
end