3

How can we write a matrix of the form I posted below. Hope you will give an answer.

how to write a matrix in latex of the form mentioned below

3

1 Answer 1

6

You could use blkarray.

\documentclass{article}
\usepackage{blkarray}

\begin{document}

\[
\begin{blockarray}{cccc}
  & 1 & 2 & 3 \\
\begin{block}{c[ccc]}
1 & 0 & 1 & 0 \\
2 & 0 & 0 & 1 \\
3 & 1 & 1 & 0 \\
4 & 0 & 1 & 0 \\
\end{block}
\end{blockarray}
\]

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .