5

I want to illustrate the use of dots in LaTeX.

Here is the output I am looking for:

enter image description here

This is the code I am starting with:

 $$ L= \left[ \begin{array}{ccc} 1 & 0 & 0 \quad\cdots\quad0\\ m_{2,1} & 1 & 0 \quad\cdots\quad0\\ m_{3,1} & m_{3,2} & 1 \quad\cdots\quad0\\ \\ \end{array} \right] $$ 
4
  • 3
    Please see Why is \[\] preferable to $$$$? Commented Jan 2, 2020 at 17:09
  • 1
    your title asks about \dots (a command defined by amsmath) but your example code and accepted answer demonstrates \cdots do you want to change the title? Commented Jan 2, 2020 at 19:32
  • yes please change my title. Commented Jan 2, 2020 at 20:06
  • @constantinosgeorgiou: You can edit your title by selecting the "edit" button at the bottom left of the question. Since you posted it, you should have edit privileges on it. Commented Jan 2, 2020 at 20:57

1 Answer 1

9

enter image description here

With use of the amsmath package (for bmatrix):

\documentclass{article} \usepackage{amsmath} \begin{document} \[ L= \begin{bmatrix} 1 & 0 & 0 & \cdots & 0\\ m_{2,1} & 1 & 0 & \cdots & 0\\ m_{3,1} & m_{3,2} & 1 & \cdots & 0\\ \vdots & \vdots & \vdots & \ddots & \vdots\\ m_{n,1} & m_{n,2} & \cdots & m_{n,n-1} & 1 \end{bmatrix} \] \end{document} 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.