%% Complement of Unsigned Integers

cmp = bitcmp(64,'uint8')
maxint = intmax('uint8') - 64

% The complement of an unsigned integer is equal to itself subtracted from the maximum integer of its data type.
% Copyright 2012 The MathWorks, Inc.