Skip to content

bitpack

general · scripts/general/bitpack.m

: y = bitpack (x, class)

Interpret logical bit pattern x as numeric values of class. Bits are least-significant first; excess bits beyond a whole number of elements are discarded. A row x yields a row result.