%% Represent Negative Numbers
% Starting in R2020a, the dec2hex function converts negative numbers using their two's complement binary values.
% For example, these calls to dec2hex convert negative numbers.

dec2hex(-1)
dec2hex(-16)

% Copyright 2019 The MathWorks, Inc.