I created a numpy matrix(1 row, 3 cols) with the following values [4 6 8]. What I want to do is to concatenate all these values into a single entry of binary values. So instead of [4 6 8] I would want to have a numpy matrix of just 1 entry . I would like each number to be represented by a 4 digit binary number. I looked at reshape for numpy but am still unsure how to do this? Would appreciate it if anyone could help.