I have a big matrix which exceeds the width of page, how can I fix this problem?
Best Answer
You can use the nccmathpackage, an extension to amsmath that defines medium-sized mathematics, intermediate between textstyle and displaystyle (ca 80 % of the displaystyle size). With a suitable text width, it's OK but, of course, everything depends on what you actually have. Here is an illustration with textwidth=16cm and both styles:
Given the narrow measure (line width) set by the IEEEtran document class, I believe you have little choice but to break up the entire expression into several parts. One way to do this is to define various submatrices and assign them short names, such as X_1, X_2, etc., and then use these short names in the main expression. For instance, the following might work for you and for the readers of your paper; obviously, you should probably use symbol names that are a bit less generic than X and Y. The \hrule (horizontal rule) commands are there just to indicate the width of the column of text.
\documentclass{IEEEtran}
\usepackage{mathtools}
\begin{document}\pagestyle{empty}
\hrule
\medskip
Let us define
\begin{align*}
X &=
\begin{bmatrix}
E^\top KA & 0 \\
0 & V^\top E^\top U \hat{K} U^\top AV
\end{bmatrix}\,, \\
Y &=
\begin{bmatrix}
E^\top KB \\
V^\top E^\top U \hat{K} U^\top B
\end{bmatrix}\,,\\
\shortintertext{and}
Z &=
\begin{bmatrix}
C^\top C & -C^\top CV \\
-V^\top C^\top C & V^\top C^\top CV
\end{bmatrix}\,.
\end{align*}
Then
\begin{equation}
\begin{bmatrix}
X+X^\top & Y\\
Y^\top & 0
\end{bmatrix} +
\begin{bmatrix}
Z & 0\\
0 &-\gamma^2 I
\end{bmatrix} = Q_2 \preceq 0.
\end{equation}
\hrule
\end{document}
Best Answer
You can use the
nccmath
package, an extension to amsmath that defines medium-sized mathematics, intermediate between textstyle and displaystyle (ca 80 % of the displaystyle size). With a suitable text width, it's OK but, of course, everything depends on what you actually have. Here is an illustration with textwidth=16cm and both styles: