Reg2Hex
Revision as of 21:49, 3 December 2018 by imported>Kyunghyun Cho (Created page with "<p>% For displaying the result with red letters.</p> <p>% Reference: https://kr.mathworks.com/matlabcentral/answers/153064-change-color-of-each-individual-string-in-a-listbox</p...")
% 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);