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