rtsClass2Color.m 292 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