Reg2Hex
% For displaying the result with red letters.
% Reference: https://kr.mathworks.com/matlabcentral/answers/153064-change-color-of-each-individual-string-in-a-listbox
function hexStr = rgb2Hex( rgbColour )
hexStr = reshape( dec2hex( rgbColour, 2 )',1, 6);