Home > freetb4matlab > general > bitset.m

bitset

PURPOSE ^

% Set or reset bit(s) @var{n} of unsigned integers in @var{a}.

SYNOPSIS ^

function X = bitset (A, n, value)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{x} =} bitset (@var{a}, @var{n})
% @deftypefnx {Function File} {@var{x} =} bitset (@var{a}, @var{n}, @var{v})
% Set or reset bit(s) @var{n} of unsigned integers in @var{a}.
% @var{v} = 0 resets and @var{v} = 1 sets the bits.
% The lowest significant bit is: @var{n} = 1
%
% @example
% @group
% dec2bin (bitset (10, 1))
% @result{} 1011
% @end group
% @end example
% @seealso{bitand, bitor, bitxor, bitget, bitcmp, bitshift, bitmax}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003