0

I want to create the following block matrix enter image description here

So far I have obtain the following matrix

\[
\renewcommand{\arraystretch}{1.3}
\left[
\begin{array}{c@{}c:c:c:c:c:c}
            & \pmb{\Phi}_{1}   & \pmb{\Psi}_{1}   & \mathbf{0}         & \cdots & \mathbf{0}        & \mathbf{0}                   \\ \hdashline
            & \mathbf{0}       & \pmb{\Phi}_{2}   & \pmb{\Psi}_{2}     & \cdots & \mathbf{0}        & \mathbf{0}                    \\ \hdashline
            & \vdots           & \vdots           & \vdots             &        & \vdots            & \vdots                         \\ \hdashline
            & \mathbf{0}       & \mathbf{0}       & \mathbf{0}         & \cdots &  \pmb{\Phi}_{n-1} &  \pmb{\Psi}_{n-1}               \\ \hdashline
            & \mathbf{0}       & \mathbf{0}       & \mathbf{0}         & \cdots &  \mathbf{0}       &  \pmb{\Phi}_{n}               \\
\end{array}\right]
\]

It produces the following matrix enter image description here

How can I achieve that the vertical line are not draw through in the third line like the matrix at the top?

  • Please consider accepting an answer. Or is your question still open? – Dr. Manuel Kuehner Dec 30 '18 at 8:14
3

with

\def\MC#1{\multicolumn{1}{c}{#1}}

and then

\[
\renewcommand{\arraystretch}{1.3}
\left[
\begin{array}{c@{}c:c:c:c:c:c}
    & \pmb{\Phi}_{1}   & \pmb{\Psi}_{1}   & \mathbf{0}         & \cdots & \mathbf{0}        & 
    \mathbf{0}                   \\ \hdashline
    & \mathbf{0}       & \pmb{\Phi}_{2}   & \pmb{\Psi}_{2}     & \cdots & \mathbf{0}        & 
    \mathbf{0}                    \\ \cdashline{1-4}\cdashline{6-7}
    & \MC{\vdots}      & \MC{\vdots}      & \MC{\vdots}        & \MC{}  & \MC{\vdots}       & 
    \vdots                         \\\cdashline{1-4}\cdashline{6-7}
    & \mathbf{0}       & \mathbf{0}       & \mathbf{0}         & \cdots &  \pmb{\Phi}_{n-1} &  
    \pmb{\Psi}_{n-1}               \\ \hdashline
    & \mathbf{0}       & \mathbf{0}       & \mathbf{0}         & \cdots &  \mathbf{0}       &  
    \pmb{\Phi}_{n}               \\
\end{array}\right]
\]

enter image description here

  • But the second and the third horizontal line are drawn through. This is for the matrix at the top not the case. How can I handle this? – wayne Dec 20 '18 at 20:49
  • see edited answer – user2478 Dec 21 '18 at 6:38
2

Like this?

\documentclass{book}
\usepackage{amsbsy}
\usepackage{arydshln}

\begin{document}

\[ \renewcommand{\arraystretch}{1.3}
\left[
\begin{array}{c@{}c:c:c:c:c:c@{}}
   & \boldsymbol{\Phi}_{1} & \boldsymbol{\Psi}_{1} & \mathbf{0} & \cdots & \mathbf{0} & \mathbf{0} \\ \cdashline{1-4}\cdashline{6-7}
    & \mathbf{0} & \boldsymbol{\Phi}_{2} & \boldsymbol{\Psi}_{2} & \cdots & \mathbf{0} & \mathbf{0} \\\cdashline{1-4}\cdashline{6-7}
    & \multicolumn{1}{c}{\vdots} & \multicolumn{1}{c}{\vdots} & \multicolumn{1}{c}{\vdots} &\multicolumn{1} {c}{} & \multicolumn{1}{c}{\vdots} & \vdots \\ \cdashline{1-4}\cdashline{6-7}
    & \mathbf{0} & \mathbf{0} & \mathbf{0} & \cdots &\multicolumn{1}{@{\,}c: }{ \boldsymbol{\Phi}_{n-1}\mkern-6mu} & \mkern-6mu \boldsymbol{\Psi}_{n-1} \\ \cdashline{1-4}\cdashline{6-7}
    & \mathbf{0} & \mathbf{0} & \mathbf{0} & \cdots & \mathbf{0} & \boldsymbol{\Phi}_{n} \\
\end{array}\right]
\]

\end{document}

enter image description here

  • The second and the third horizontal line are drawn through. This is for the matrix at the top not the case. How can I handle this? – wayne Dec 20 '18 at 20:50
  • With \cdashline{...}. Please see the updated code. – Bernard Dec 20 '18 at 21:01
  • I can't see the command \cdashline in your code – wayne Dec 20 '18 at 21:08
  • Sorry, a clipboard manager accident. 'Iis fixed now. – Bernard Dec 20 '18 at 21:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.