FUNCTION REFERENCE
bit2int
Convert column-wise groups of bits to integers.
Convert column-wise groups of bits to integers.
Syntax
y = bit2int(x,n,msbfirst,IsSigned=false)The number of rows must be a multiple of n. Default MSB first. IsSigned interprets the high bit as two's complement. Double/logical inputs produce double; single produces single; integer output widens as required.
Example
bit2int([1;0;1;0],4)Differences from MATLAB: conversion is limited to 53 bits for double, 24 for single, 64 for integer inputs; unrepresentable signed integer output errors.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.