[ LaTeX ] 행렬 표현하기
matrix, pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix
Latex 행렬 표현 6가지 방식
- matrix : 괄호 없음
- pmatrix : parentheses → ( )
- bmatrix : brackets → [ ]
- Bmatrix : curly brackets → { }
- vmatrix : vertical bar brackets → | |
- Vmatrix : double vertical bar brackes → || ||
원소간 구분 방식
- & : 열 구분
- \\ : 행 구분
큰 행렬 표현 : 점점점 표현
- \cdots : 중앙 가로 점 3개
- \vdots : 중앙 세로 점 3개
- \ddots : 중앙 대각선 점 3개
표현 예시
먼저 필요한 package 를 불러옵니다.
\usepackage{amsmath}
ex. 1 ) matrix, pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix
- matrix
\begin{equation}
\begin{matrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\
\end{matrix}
\end{equation}
\begin{equation}
\begin{matrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\
\end{matrix}
\end{equation}
- pmatrix
\begin{equation}
\begin{pmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\
\end{pmatrix}
\end{equation}
\begin{equation}
\begin{pmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\
\end{pmatrix}
\end{equation}
- bmatrix
\begin{equation}
\begin{bmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\
\end{bmatrix}
\end{equation}
\begin{equation}
\begin{bmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\
\end{bmatrix}
\end{equation}
- Bmatrix
\begin{equation}
\begin{Bmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\
\end{Bmatrix}
\end{equation}
\begin{equation}
\begin{Bmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\
\end{Bmatrix}
\end{equation}
- vmatrix
\begin{equation}
\begin{vmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\
\end{vmatrix}
\end{equation}
\begin{equation}
\begin{vmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\
\end{vmatrix}
\end{equation}
- Vmatrix
\begin{equation}
\begin{Vmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\
\end{Vmatrix}
\end{equation}
\begin{equation}
\begin{Vmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\
\end{Vmatrix}
\end{equation}
ex. 2 ) m x n matrix
\begin{equation*}
A_{m,n} =
\begin{pmatrix}
a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{m,1} & a_{m,2} & \cdots & a_{m,n}
\end{pmatrix}
\end{equation*}
\begin{equation*}
A_{m,n} =
\begin{pmatrix}
a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{m,1} & a_{m,2} & \cdots & a_{m,n}
\end{pmatrix}
\end{equation*}
함께 읽어 볼 만한 글
[ 참고 ]