%% Convert Decimal Integers to Multivalued Logic
% Find the multivalued logic vector for a positive decimal integer.

bits = dec2mvl(23)

% Find the multivalued logic vector for a negative decimal integer.

bits = dec2mvl(-23)

% Find the multivalued logic vector for a negative decimal integer. Specify the minimum number of bits to be returned at the output.

bits = dec2mvl(-23,8)

% Copyright 2012 The MathWorks, Inc.