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


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

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

\usepackage{amsmath} % for 'bmatrix' environment
A = \begin{bmatrix} 
    a_{11} & a_{12} & \dots \\
    \vdots & \ddots & \\
    a_{K1} &        & a_{KK} 
  • 1
    What's the usage of [ and ] before and after the matrix definition?
    – B Faley
    Sep 3 '16 at 12:04
  • 5
    @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.