%% Represent Negative Number, NaN, and Inf
% Convert a negative number and represent it in IEEE® format.

num2hex(-1)

%
% Convert NaN.

num2hex(NaN)

%
% Convert Inf.

num2hex(Inf)

% Copyright 2019 The MathWorks, Inc.