The layout produced by your code is correct, but there is too much space between the columns if the labels consist of one character, for instance \vec{u} is written above the first column.
Main Topics
Browse All TopicsI display a matrix in LaTeX with the following code:
\left(
\begin{array}{ccc}
1 & 1 & 1 \\
0 & 1 & 2
\end{array}
\right)
I want to give a name for the columns, e.g. the first one would be u vector.
How can these labels put above the columns without messing up the parentheses around the matrix?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
>> but there is too much space between the columns
Just for the record - this would fix that :
\begin{array}{@{}r@{}c@{}c
& \vec{u} & \vec{v} & \vec{w} & \\
\left.\begin{array}{c} \\ \\ \\ \end{array}\right(
& \begin{array}{c} a \\ d \\ g \end{array}
& \begin{array}{c} b \\ e \\ h \end{array}
& \begin{array}{c} c \\ f \\ i \end{array}
& \left)\begin{array}{c} \\ \\ \\ \end{array}\right.
\end{array}
Business Accounts
Answer for Membership
by: Infinity08Posted on 2007-08-01 at 05:22:27ID: 19608031
With my limited knowledge of LaTeX, something like this comes close (but isn't perfect) :
\begin{array}{rcccl}
& u vector & v vector & w vector & \\
\left.\begin{array}{c} \\ \\ \\ \end{array}\right(
& \begin{array}{c} a \\ d \\ g \end{array}
& \begin{array}{c} b \\ e \\ h \end{array}
& \begin{array}{c} c \\ f \\ i \end{array}
& \left)\begin{array}{c} \\ \\ \\ \end{array}\right.
\end{array}
There's probably an easier solution heh