comparison scripts/strings/dec2hex.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
30 ## If @var{n} is a vector, returns a string matrix, one row per value, 30 ## If @var{n} is a vector, returns a string matrix, one row per value,
31 ## padded with leading zeros to the width of the largest value. 31 ## padded with leading zeros to the width of the largest value.
32 ## 32 ##
33 ## The optional second argument, @var{len}, specifies the minimum 33 ## The optional second argument, @var{len}, specifies the minimum
34 ## number of digits in the result. 34 ## number of digits in the result.
35 ## @seealso{hex2dec, dec2base, base2dec, bin2dec, dec2bin}
35 ## @end deftypefn 36 ## @end deftypefn
36 ##
37 ## @seealso{hex2dec, dec2base, base2dec, bin2dec, dec2bin}
38 37
39 ## Author: Daniel Calvelo <dcalvelo@yahoo.com> 38 ## Author: Daniel Calvelo <dcalvelo@yahoo.com>
40 ## Adapted-by: Paul Kienzle <pkienzle@kienzle.powernet.co.uk> 39 ## Adapted-by: Paul Kienzle <pkienzle@kienzle.powernet.co.uk>
41 40
42 function retval = dec2hex (n, len) 41 function retval = dec2hex (n, len)