How can I include a matrix as a value in a Latex table? For example, in the code provided below, I need C to be written in matrix format with the brackets.

\begin{tabular}{c c c} 
\hline % inserting line
 A & B & C
\\ [0.1ex] 
\hline % inserts single-line
\\ [0.2ex] 
% Entering 1st row
\raisebox{1.5ex}{4} & \raisebox{1.5ex}{3}&\raisebox{1.5ex}{[00; 11; 10;  01]}
\hline % inserts single-line
  • Welcome to TeX.SX! It is not really clear, how your matrix should look like. Maybe you can post a little drawing. Thanks. PS: please sign in for this site as well (with your StackOverflow Single Sign On). Like this you will be able to vote on answers here. – LaRiFaRi Sep 22 '14 at 12:12

Something like one of these?

% arara: pdflatex


        A & B & C\\
        $4$ & $3$&$\begin{bmatrix}00\\11\\10\\01\end{bmatrix} [00; 11; 10;  01]$\\
        $[00; 11; 10;  01]$ \\

enter image description here

| improve this answer | |
  • You could use a \savebox to overcome the & conflict between tabular and array. – John Kormylo Sep 22 '14 at 15:01
  • Never mind, not needed. (But the \savebox option does work.) – John Kormylo Sep 22 '14 at 17:27
  • @JohnKormylo thanks, but I am still waiting for some feedback. Don't know, what the OP actually wants. – LaRiFaRi Sep 22 '14 at 20:07
  • @LaRiFaRi you answered my question, I needed it to be in bmatrix format – Amira Akra Sep 23 '14 at 10:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.