2

I would like to create a matrix with divider lines as shown in the following figure:

enter image description here

I'm not looking for a straight line like in this answer. any idea on how to do it?

thanks in advance

1

1 Answer 1

3

Here is a solution with arydshln:

\documentclass[11pt]{article}

\usepackage[utf8]{inputenc}
\usepackage{array}
\usepackage{amssymb, mathtools}

\usepackage{arydshln}
\setlength\dashlinedash{2pt}
\setlength\dashlinegap{1.2pt}

\newenvironment{BMatrix}[1]{%
\Bmatrix\hspace{-0.5\arraycolsep}\array{#1}}%
{\endarray\hspace*{-0.5\arraycolsep}\endBmatrix}
\newenvironment{bMatrix}[1]{%
\bmatrix\array{#1}\hspace*{-0.5\arraycolsep}}%
{\endarray\endbmatrix}

\begin{document}

\[  \begin{BMatrix}{r}%{c}%
  N \\ \hdashline MM
  \end{BMatrix}
  =\begin{bMatrix}{c:c}
  A & B \\ \hdashline C & D
  \end{bMatrix}
  \begin{BMatrix}{c}\epsilon^D \\ \hdashline k \end{BMatrix} \]%

\end{document}

enter image description here

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