Convert a non-negative integer to bit vector.
The variable d must be a vector of non-negative integers. de2bi
then returns a matrix where each row represents the binary representation
of elements of d. If n is defined then the returned matrix
will have n columns. This number of columns can be either larger
than the minimum needed and zeros will be added to the msb of the
binary representation or smaller than the minimum in which case the
least-significant part of the element is returned.
If p is defined then it is used as the base for the decomposition of the returned values. That is the elements of the returned value are between ’0’ and ’p-1’. (p must have a value of 2 or higher.)
The variable f defines whether the first or last element of b is considered to be the most-significant. Valid values of f are "right-msb" or "left-msb". By default f is "right-msb".
See also: bi2de.
Package: communications