Home > freetb4matlab > general > bitcmp.m

bitcmp

PURPOSE ^

% Return the @var{k}-bit complement of integers in @var{a}. If

SYNOPSIS ^

function x = bitcmp (a, n)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} bitcmp (@var{a}, @var{k})
% Return the @var{k}-bit complement of integers in @var{a}.  If
% @var{k} is omitted @code{k = log2 (bitmax) + 1} is assumed.
%
% @example
% @group
% bitcmp(7,4)
% @result{} 8
% dec2bin(11)
% @result{} 1011
% dec2bin(bitcmp(11, 6))
% @result{} 110100
% @end group
% @end example
% @seealso{bitand, bitor, bitxor, bitset, bitget, bitcmp, bitshift, bitmax}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003