# MATLAB: Constuctiing special array (like binary)

arraybinary

Hi, I'am new to matlab and I want to make an nxn matrix containing as first row zeros and as last row ones. The other rows should be like binary digits.
Example with n=4:
0000000100100011010001010110011110001001101010111100110111101111
Thank you!!

•  dec2bin(0:2^n-1)-'0'