%% Convert Array of Integers to Binary 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 binary representation using dec2bin. dec2bin returns 4 rows of character vectors. Each row contains a 7-digit binary number.

str = dec2bin(d)

% Return a binary representation with at least 8 digits by specifying the number of digits.

str = dec2bin(d,8)

%
% Copyright 2019 The MathWorks, Inc.