16

How can I draw a matrix with dots in tex like the one shown below:

matrix

  • 6
    \dots \vdots \ddots plus bmatrix env – daleif Sep 3 '16 at 11:38
23

Load the amsmath package for the bmatrix ("bracketed matrix") environment, and use \dots, \vdots ("vertical dots"), and \ddots ("diagonal dots") as appropriate.

enter image description here

\documentclass{article}
\usepackage{amsmath} % for 'bmatrix' environment
\begin{document}
\[
A = \begin{bmatrix} 
    a_{11} & a_{12} & \dots \\
    \vdots & \ddots & \\
    a_{K1} &        & a_{KK} 
    \end{bmatrix}
\]
\end{document}
  • What's the usage of [ and ] before and after the matrix definition? – Meysam Sep 3 '16 at 12:04
  • 4
    @Meysam -- \[ is LaTeX code to initiate an unnumbered display-math environment, and \] is LaTeX code to terminate this environment. Please check out the posting What are the differences between $$, \[, align, equation and displaymath? for more information on the subject of TeX and LaTeX display-math environments. – Mico Sep 3 '16 at 12:07

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.