Home > freetb4matlab > strings > dec2bin.m

dec2bin

PURPOSE ^

% Return a binary number corresponding to the non-negative decimal number

SYNOPSIS ^

function retval = dec2bin (n, len)

DESCRIPTION ^

% -*- 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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003