I found this code here (stackexchange) and modified it for the matrix I needed to make. But I want to have thoses brackets[ ]. I tried to change blockarray for \left[ and \right]. Can anybody help me please? I needed \usepackage{blkarray} for this.
\[ \newcounter{rowct}\newcounter{colct}%\setlength\extrarowheight{1cm}
\begin{blockarray}{*{8}{c}}
\begin{block}{r*{7}{>{\refstepcounter{colct}\mathclap{\mathbf\thecolct}}c}}
& & & & & & & \\%[-1ex]
\end{block}
\begin{block}{ >{\refstepcounter{rowct}\mathbf\therowct}r( >{\hspace{0.2em}}*{7}{c} <{\hspace{0.2em}})}
& 0 & 1 & 1 & 1 & 1 & 0 & 0 \rule{0pt}{3.5ex} \\
& 1 & 0 & 1 & 1 & 0 & 1 & 0 \\
& 1 & 1 & 0 & 0 & 0 & 0 & 0 \\
& 1 & 1 & 0 & 0 & 1 & 1 & 1 \\
& 1 & 0 & 0 & 1 & 0 & 0 & 1\\
& 0 & 1 & 0 & 1 & 0 & 0 & 0 \\
& 0 & 0 & 0 & 1 & 1 & 0 & 0\\[1ex]
\end{block}
\end{blockarray}
\]


