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

Alvaro
  • 135
  • 8
    See http://tex.stackexchange.com/questions/183258/how-to-add-dash-lines-in-matrix and/or http://tex.stackexchange.com/questions/171518/how-to-create-vertical-and-horizontal-dotted-lines-in-a-matrix, for example. – Steven B. Segletes May 24 '16 at 15:55

1 Answers1

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

Bernard
  • 271,350