I tried to add the matrix in a math formula, but the matrix was distorted in shape. The code I use is the following:
Code: Select all
\documentclass[a4paper,11pt]{article}
\begin{document}
$y=\sum_{i} x_{i} \begin{bmatrix} 1 & 1 &1 \\ 1& 1 & 1\\1 & 1& 1 \end{bmatrix}$
\end{document}
Thank you.
Lynn