Mercurial > octave-nkf
comparison scripts/general/bitset.m @ 5642:2618a0750ae6
[project @ 2006-03-06 21:26:48 by jwe]
author | jwe |
---|---|
date | Mon, 06 Mar 2006 21:26:54 +0000 |
parents | 4c8a2e4e0717 |
children | 34f96dd5441b |
comparison
equal
deleted
inserted
replaced
5641:eb998631a4aa | 5642:2618a0750ae6 |
---|---|
24 ## | 24 ## |
25 ## @example | 25 ## @example |
26 ## dec2bin (bitset (10, 1)) | 26 ## dec2bin (bitset (10, 1)) |
27 ## @result{} 1011 | 27 ## @result{} 1011 |
28 ## @end example | 28 ## @end example |
29 ## @seealso{bitand, bitor, bitxor, bitget, bitcmp, bitshift, bitmax} | |
29 ## @end deftypefn | 30 ## @end deftypefn |
30 ## | |
31 ## @seealso{bitand, bitor, bitxor, bitget, bitcmp, bitshift, bitmax} | |
32 | 31 |
33 ## Liberally based of the version by Kai Habel from octave-forge | 32 ## Liberally based of the version by Kai Habel from octave-forge |
34 | 33 |
35 function X = bitset (A, n, value) | 34 function X = bitset (A, n, value) |
36 | 35 |