comparison scripts/general/bitget.m @ 7016:93c65f2a5668

[project @ 2007-10-12 06:40:56 by jwe]
author jwe
date Fri, 12 Oct 2007 06:41:26 +0000
parents 34f96dd5441b
children a1dbe9d80eee
comparison
equal deleted inserted replaced
7015:0a708692d51d 7016:93c65f2a5668
1 ## Copyright (C) 2004 David BAteman 1 ## Copyright (C) 2004 David BAteman
2 ## 2 ##
3 ## This program is free software; you can redistribute it and/or modify 3 ## This file is part of Octave.
4 ## it under the terms of the GNU General Public License as published by
5 ## the Free Software Foundation; either version 2 of the License, or
6 ## (at your option) any later version.
7 ## 4 ##
8 ## This program is distributed in the hope that it will be useful, 5 ## Octave is free software; you can redistribute it and/or modify it
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of 6 ## under the terms of the GNU General Public License as published by
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 7 ## the Free Software Foundation; either version 3 of the License, or (at
11 ## GNU General Public License for more details. 8 ## your option) any later version.
9 ##
10 ## Octave is distributed in the hope that it will be useful, but
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 ## General Public License for more details.
12 ## 14 ##
13 ## You should have received a copy of the GNU General Public License 15 ## You should have received a copy of the GNU General Public License
14 ## along with this program; if not, write to the Free Software 16 ## along with Octave; see the file COPYING. If not, see
15 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 ## <http://www.gnu.org/licenses/>.
16 ## 02110-1301 USA
17 18
18 ## -*- texinfo -*- 19 ## -*- texinfo -*-
19 ## @deftypefn {Function File} {@var{X} =} bitget (@var{a},@var{n}) 20 ## @deftypefn {Function File} {@var{X} =} bitget (@var{a},@var{n})
20 ## Return the status of bit(s) @var{n} of unsigned integers in @var{a} 21 ## Return the status of bit(s) @var{n} of unsigned integers in @var{a}
21 ## the lowest significant bit is @var{n} = 1. 22 ## the lowest significant bit is @var{n} = 1.