%% Convert Decimal Number
% Convert a decimal number to a character vector that represents its hexadecimal value.

D = 1023;
hexStr = dec2hex(D)

% Copyright 2019 The MathWorks, Inc.