comparison scripts/strings/dec2bin.m @ 2355:c9f70d39255f

[project @ 1996-08-20 23:30:54 by jwe]
author jwe
date Tue, 20 Aug 1996 23:32:09 +0000
parents 7ffb2a630708
children 4f40efa995c1
comparison
equal deleted inserted replaced
2354:2ce6e1ec9b53 2355:c9f70d39255f
20 ## usage: dec2bin (x) 20 ## usage: dec2bin (x)
21 ## 21 ##
22 ## Returns the binary number corresponding to the nonnegative integer 22 ## Returns the binary number corresponding to the nonnegative integer
23 ## x. For example, dec2bin (14) returns "1110". 23 ## x. For example, dec2bin (14) returns "1110".
24 24
25 ## Author: jwe 25 ## Author: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>
26 ## Adapted-By: jwe
26 27
27 function y = dec2bin (x) 28 function y = dec2bin (x)
28
29 ## Original version by Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>.
30 29
31 if (nargin != 1) 30 if (nargin != 1)
32 usage ("dec2bin (x)"); 31 usage ("dec2bin (x)");
33 endif 32 endif
34 33