%% Maximum Integer
% Find the difference in the binary representation between the maximum integer of signed and unsigned integers.

a1 = intmax('int8');
a2 = intmax('uint8');
b1 = bitget(a1,8:-1:1)
b2 = bitget(a2,8:-1:1)

% The signed integers require a bit to accommodate negative integers.
% Copyright 2012 The MathWorks, Inc.