comparison scripts/strings/bin2dec.m @ 3446:5ee5afb3981a

[project @ 2000-01-17 09:42:43 by jwe]
author jwe
date Mon, 17 Jan 2000 09:42:48 +0000
parents c9f70d39255f
children 2a257be5e488
comparison
equal deleted inserted replaced
3445:c3eed8ac845a 3446:5ee5afb3981a
15 ## 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
16 ## along with Octave; see the file COPYING. If not, write to the Free 16 ## along with Octave; see the file COPYING. If not, write to the Free
17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA
18 ## 02111-1307, USA. 18 ## 02111-1307, USA.
19 19
20 ## usage: bin2dec (x) 20 ## -*- texinfo -*-
21 ## @deftypefn {Function File} {} bin2dec (@var{s})
22 ## Return the decimal number corresponding to the binary number
23 ## represented by the string @var{s}. For example,
21 ## 24 ##
22 ## Returns the decimal number corresponding to the binary number in 25 ## @example
23 ## quotes. For example, bin2dec ("1110") returns 14. 26 ## bin2dec ("1110")
27 ## @result{} 14
28 ## @end example
29 ## @end deftypefn
24 30
25 ## Author: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> 31 ## Author: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>
26 ## Adapted-By: jwe 32 ## Adapted-By: jwe
27 33
28 function y = bin2dec (x) 34 function y = bin2dec (x)