Linked Questions

5
votes
1answer
235 views

An array that includes a matrix [duplicate]

BAC GM IBM TRW JOHN 200 300 100 200 A = PAUL 100 200 400 0 I would like to create an array that looks like what appears above, except that square brackets should enclose (...
351
votes
10answers
544k views

Column and row padding in tables

How do you guys go about controlling column padding in tables? Update To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the ...
106
votes
5answers
324k views

How to add a matrix to a LaTeX document

How do we add a matrix to a LaTeX document?
63
votes
5answers
74k views

Label rows of a matrix by characters

How to add label to index the rows and columns of the matrix ? because I want to number the line outside the matrix \[ \begin{array}{lc} \ Mat_{\varPhi to M} & \left(\begin{array}{@...
12
votes
6answers
4k views

What to put into the intersection of the row/column labels of a table?

I have a grid/table/matrix with separate labels for the rows and the columns. However, I also want to label these labels themselves (by indicating the "type" of the labels, such as SI units, etc.) ...
20
votes
2answers
25k views

\bordermatrix with brackets [ ] instead of parentheses ( )

I have the following code: \documentclass{article} \begin{document} $ M = \bordermatrix{~ & x & y \cr A & 1 & 0 \cr B & 0 & 1 \cr} $ \end{document} ...
16
votes
2answers
38k views

Misplaced alignment tab character when building a matrix

I'm still new to latex. I've been having a problem with building a matrix and I have no idea what I'm doing (or what I'm doing wrong), so be gentle please :) \begin{matrix} 5 & 6 & 7 \\ 4 &...
16
votes
2answers
8k views

Array with labeling columns

Is there an intelligent way to label (or name) columns in a matrix? I would like to have something like \[M=\left[\begin{array}{c|cc} 1 & 2 & 3\\ 4 & 5 & 6 \end{array}\right],N=\left[\...
13
votes
1answer
13k views

Matrix with rows and columns labeled

It is trivial to make matrices like so: \begin {pmatrix} s & t & a \\ c & k & x \\ cha & n & ge \end {pmatrix} It is not so trivial to impose labels on the rows and columns ...
8
votes
1answer
3k views

Why “p” in pmatrix?

I am using the command \begin{pmatrix} [...] \end{pmatrix}. I wonder why this command is not just called \begin{matrix} [...] \end{matrix} and why a "p" before "matrix".
6
votes
1answer
8k views

How to create a matrix with rows and columns labeled (at the right side)?

I would like to create a matrix with rows and columns being labeled. I would like the matrix elements to be right aligned, the row labels being displayed to the right of the matrix, and the column ...
9
votes
1answer
6k views

Write elements above and right outside the matrix

I found writing matrix's code is a boring work. There is one, you can see in pic below. Can anybody help?
5
votes
3answers
3k views

Change font color of a column in a matrix

I have this code: \documentclass[a4paper,11pt]{article} \usepackage{amsmath} \begin{document} $ A = \begin{bmatrix} a & b & c & d \\ a & b & c & d \\ a & b & c &...
6
votes
1answer
2k views

How can I add some enhancement to the matrix [duplicate]

Possible Duplicate: Highlight elements in the matrix \documentclass[12pt,a4paper]{mwrep} \usepackage{amsmath} \usepackage[nodisplayskipstretch]{setspace} \setstretch{1.5} \begin{document} \begin{...
4
votes
1answer
5k views

How to draw the following table (simplex tableau)

I would like to draw table, I tried, \begin{equation} \begin{array}{c} z \\ s_1 \\ s_2 \\ s_3 \end{array} \begin{bmatrix} \begin{array}{c|ccccc|c} z & x_1 & x_2 & s_1 & s_2 & ...

15 30 50 per page