matlab convert bit array to int code example Example: matlab bit array to int b = [0 0; 0 1; 1 0; 1 1] d = bi2de(b, 'left-msb')