------------------------------------------------------------------------------- Generates a color corresponding to a temperature. colorMap is optional. ------------------------------------------------------------------------------- Form: rGB = ThermalColorcolorMap( temp, tempMax, colorMap ) ------------------------------------------------------------------------------- ------ Inputs ------ temp (1,n) Temperatures tempMax (1,1) Maximum temperature colorMap (:,3) Color colorMap. Each row is [r b g] ------- Outputs ------- rGB (n,3) Colors representing the temperature. -------------------------------------------------------------------------------