MATLAB: Create an Binary matrix table

MATLAB

Hi,
The result of the next line is a binary table: table= dec2bin(0:(2^4-1)) table =
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
I want to get the result as a matrix. What I need to add or change to get it in a matrix like that one:
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1
Thanks, Henry

Best Answer

That's easy:
table= dec2bin(0:(2^4-1)) - '0';