How can we write a matrix of the form I posted below. Hope you will give an answer.
Asked
Active
Viewed 213 times
3
Stefan Pinnow
- 29,535
user159132
- 31
-
Have you tried – Alex2006 Mar 26 '18 at 09:37
-
Welcome to TeX.SE Could you post a MWE – Thorbjørn E. K. Christensen Mar 26 '18 at 09:45
-
Similar: https://tex.stackexchange.com/questions/55054/bordermatrix-with-brackets-instead-of-parentheses/55056#55056 – Éric Guirbal Mar 26 '18 at 10:11
1 Answers
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}
onewhaleid
- 1,257

