% -*- texinfo -*- % @deftypefn {Function File} {} dec2bin (@var{n}, @var{len}) % Return a binary number corresponding to the non-negative decimal number % @var{n}, as a string of ones and zeros. For example, % % @example % @group % dec2bin (14) % @result{} '1110' % @end group % @end example % % If @var{n} is a vector, returns a string matrix, one row per value, % padded with leading zeros to the width of the largest value. % % The optional second argument, @var{len}, specifies the minimum % number of digits in the result. % @seealso{bin2dec, dec2base, base2dec, hex2dec, dec2hex} % @end deftypefn