Skip to content

bi2de

legacy · scripts/legacy/bi2de.m

: d = bi2de (b)
: d = bi2de (b, p)
: d = bi2de (b, flg)
: d = bi2de (b, p, flg)

Convert base-p digit rows to nonnegative integers.

Each row of b is one integer. The default base is 2. The default flag is "right-msb" (column 1 is the least significant digit); "left-msb" puts the most significant digit first. p and flg may be swapped. Double and logical input return double; single input returns single; integer classes are widened when needed.

Communications Toolbox compatibility shim (MATLAB documents bit2int for new base-2 code).