%% Convert Array of Integers to Hexadecimal Representation
% Create a 2-by-2 symbolic matrix that contains integers in decimal representation.

d = [sym(2)^6 123; 54 11]

% Convert the integers to hexadecimal representation using dec2hex. dec2hex returns 4 rows of character vectors. Each row contains a 2-digit hexadecimal number.

str = dec2hex(d)

% Return a hexadecimal representation with at least 4 digits by specifying the number of digits.

str = dec2hex(d,4)

%
% Copyright 2019 The MathWorks, Inc.