{matrices} is about matrices in {equations} and {diagrams}.

learn more… | top users | synonyms (1)

7
votes
2answers
452 views

Caption on side by side matrices

I have two matrices side by side, like this: \[ \left[\begin{array}{cc} a & b \\ c & d \end{array}\right] \qquad \left[\begin{array}{cc} e & f \\ g & h ...
10
votes
2answers
303 views

Why is picture and matrix not drawn at the same height

I'm trying to put a adjacency matrix beneath a graph using subfloat. The graph is drawn with tikz. No matter what I do, the matrix is put below the graph as shown here: The code is here: ...
1
vote
1answer
190 views

Latex matrix not displaying right numbers

I've just started writing in latex to expose math problems to a forum. I am trying to display a matrix: \[ \begin{align*} \begin{matrix} 1 & -9 & 3 \\ 1 & 2 & -2 \\ -2 & ...
7
votes
2answers
654 views

Position two stacked tikz matrices

I would like to take two TikZ matrix, possibly of different dimensions and stack them. My demo code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} ...
7
votes
1answer
116 views

TikZ compiles in body, but not as command [duplicate]

Possible Duplicate: Problem with defining shortcuts for TikZ matrices. When I use the code below to draw a tikzpicture in the body of my document, it works just fine. However, when I define ...
3
votes
2answers
205 views

Multiple horizontal line separators? Multiple \over-s?

How to code the syntax like fraction, but with more than 2 components? Fractions consist of numerator and denominator while I need more. In other words: how to code column-matrix with horizontal lines ...
5
votes
1answer
206 views

Plot weighted frequency matrix

I wish to create this plot preferably in pgfplots or tikz. I have actually got a version plotted (with help from SO), but I have used R and exported the plot using tikzDevice. I can't post the ...
6
votes
2answers
293 views

Set Braces in XYPic, XYMatrix

I want to add three braces to a xymatrix in a xypic environment. Here's how I got so far. \documentclass[11pt]{article} % use larger type; default would be 10pt \usepackage[all]{xy} \begin{document} ...
6
votes
3answers
1k views

alignat makes 3 good alignments and 1 bad

I'm having a problem with the alignat environment. This code: \begin{alignat*}{9} &X_{12}&+X_{13}& & & & & & & &=1 ...
6
votes
1answer
1k views

Matrix notation in ClassicThesis

In Classic Thesis Style Guide, the author suggests to not use bold fonts. For vectors an alternative is arrow \vec. If I don't want to use \mathbold, what is the best alternative to mark matrix in ...
3
votes
1answer
161 views

labeling diagrams with matrices

I it possible to label an arrow with a matrix in Xy-pic? In the following diagram I want to label the arrows with 2x2 matrices to represent linear maps between vector spaces, in the place of a,b and ...
9
votes
3answers
211 views

Matrix from graph description

Are there any LaTeX package that draws/plots/generates a matrix from a "graph" description (node relations). Any type of description/language could be useful. The trick is to generate automaticly a ...
5
votes
1answer
450 views

How to label arrows in tikz-cd diagrams with matrices?

I'm using tikz-cd for some commutative diagrams, but if I try to label an arrow with a matrix, & appears to be "undefined control sequence". So all the entries in a row get concatenated, and it ...
1
vote
0answers
104 views

How to use Line in Matrix [duplicate]

Possible Duplicate: \bordermatrix with brackets [ ] instead of parentheses ( ) I need to write a complicated matrix, that has a structure as in the attached picture
8
votes
1answer
316 views

bracket covering only a part of a matrix

How can I write a matrix, with brackets that cover only rows/columns in a certain range, but still has the right indentation? What I would like: My current solution: \[ \overset{ ...
1
vote
0answers
154 views

Matrix with arrow - problem [closed]

I am using the following code from this question: Highlight elements in the matrix \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit} \tikzset{% highlight/.style={rectangle,rounded ...
4
votes
3answers
777 views

Is it possible to draw an n by n grid with text in each cell, with a different background shade/colour in each? (confusion matrix)

I am making a confusion matrix for a document, and I was wondering if LaTeX has the capabilities to handle this. It is essentially a table, but with background shading corresponding to the value in ...
5
votes
1answer
599 views

vertical lines in matrix using tikz package

my problem is interconnected to my two previous posts (here and here) and i've tried to incorporate answers into solution but without success. My task is this matrix multiplication with added ...
6
votes
2answers
143 views

nodes in matrix and its incorporation into document

i continue with my previous post (here) concerning various additions to matrix. I have following problem: how to add nodes into matrix and this whole matrix incorporate into the document ? My task is ...
6
votes
1answer
499 views

Adding nodes and horizontal lines for pmatrix

Yesterday, I posted question concerning solid diagonal line within matrix. But my problem continues, since I am supposed to add into the matrix even the vertical line and labels. Is there a way how to ...
18
votes
3answers
858 views

Matrix with labels nested in braces

What's the best way to produce a matrix with labels that are nested in braces, like this:
5
votes
1answer
2k views

diagonal line within matrix

I've got simple task - draw block of matrices, when one of the matrices contains diagonal and vertical lines. I am able to make diagonal dotted lines but so far i have not succeeded with solid line. ...
10
votes
6answers
2k views

Labelling Ax = b under an actual Matrix

I wish to achieve the following in Latex: | a b | x | x1 | = | b1 | | c d | | x2 | | b2 | A x b Where I write the labels A, x, and b under the respective matrices. The code I'm ...
4
votes
3answers
522 views

Writing a formula below a matrix

I have a matrix environment: \begin{bmatrix} ... \end{bmatrix} How can I write below that matrix? I tried with substack, so I wrote \end{bmatrix}_{\substack{...}} That doesn't work as it does ...
9
votes
1answer
2k views

Negative Sign and Matrix Alignment

I am having trouble centering the elements of a matrix such that the negative sign is not taken into account during alignment. Additionally, I would also like the space between the left parenthesis ...
2
votes
1answer
467 views

Alignment of nodes and scopes in tikz matrix?

I am trying to fix the positions of the arrows of the following diagram without much success. I would like the arrows to be centered (both horizontally and vertically) in the matrix cell no matter ...
6
votes
2answers
784 views

Vertically align the tops of matrices in an equation

The following matrix equation looks great: \begin{align*} \overset{A}{\left[\begin{matrix}t_{1}&1\\ \vdots&\vdots\\ t_{n}&1 \end{matrix}\right]} \overset{x}{\left[\begin{matrix} ...
5
votes
3answers
1k views

Side by Side matrices

How can I get matrices that are side by side? Currently I have the following: \[ \begin{pmatrix}[ccc|c] 1&2&0&0\\ -1&1&2&0\\ 1&0&1&5\\ 0&-2&1&4 ...
5
votes
2answers
956 views

Big block matrix with tikz

I know this is very similar to plenty of questions. The matrix below s actually bigger, so I realized that I had to use tikz. In this array, A, A',…,L', T are square matrices, and I filled with ...
5
votes
2answers
561 views

How to modify a node in TikZ when using beamer's overlays

I have a matrix initialized with some colors and no values. With the help of beamer's overlays I wanted to modify the matrix in the next step, changing some of the colors and inserting some values. I ...
6
votes
2answers
285 views

How to justify an element in matrix

I have a formula in LaTeX attached below. But I could not justify the position of $+\infty$ symbol. I want it appear just after the $\{$ and aligns to the left of the second term. The LaTeX Code: ...
1
vote
1answer
256 views

a line through a column in MathML [closed]

I have a problem with MathML. How can I draw a line through a column (row and column at the same time) in a matrix? An example in TEX: Draw a line through one column of a matrix
4
votes
1answer
320 views

Row spacing in kbordermatrix

I want to create a matrix with row and column lables (outide matrix delimiters). After a lot of googling, I have found that TeX macro kbordermatrix is best suited for this purpose. Here is my code ...
2
votes
1answer
2k views

multicolumn in array environment

I want to create a matrix like the following in a math environment but i keep getting compile errors. \begin{array}{c c c c} \multicolumn{3}{c}{R} & P \\ 0 & 0 & 0 & 1 \end{array}
4
votes
1answer
703 views

`pmatrix` line break

I wrote a matrix using the pmatrix environment. The content is very long and LaTeX produces an output of the kind (the "a" line extending beyond \textwidth): ( aaa aaa aaa aaa aaa aaa + aaa aaa aaa ) ...
6
votes
3answers
695 views

Typesetting sparse matrices with long entries

When typesetting a (square) matrix with arbitrary dimension but repeated entries (in particular null entries), I make use of the \cdots, \vdots and \ddots commands. When the entries of the matrix are ...
4
votes
2answers
225 views

How can I type an expression of a column vector

I want to type a column vector like below: [ dx ] UI = [ dy ] [ dtheta ] U is the name of this vector, and I is the subscript. Two brackets like the matrix style. dx, dy and ...
6
votes
1answer
654 views

How to adjust the width of a \hdashline inside a pmatrix?

I'm using \hdashline from the arydshln package to draw a horizontal line inside a pmatrix: How can I reduce the width of this line to prevent it from touching the outer parentheses?
4
votes
2answers
1k views

Typsetting big matrix (but keeping A4 size)

This question is a slight variation of Compiling a BIG matrix, but I need to write a matrix in a A4 or letter size paper; it is a block 48x48 matrix but I can put lot of $0_2$ and $0_4$'s in order to ...
2
votes
1answer
523 views

TikZ change matrix cell color background

I have a TikZ code that generates this: using something along the lines of the following snippet. The full code corresponding to this snippet can be obtained from the answer to question ...
17
votes
1answer
2k views

TikZ two-blocks matrix

I would like to get a plot like the one I sketched below, basically two blocks of the same matrix with arrows going up and anti-diagonally for the red block and arrows going up for the green one. The ...
2
votes
1answer
135 views

Matrix is not getting displayed completely in Latex

I am trying to display the matrix in latex document using below code.But the right side of the matrix is not getting displayed completely.Please check this. \[ M= \left[ ...
9
votes
2answers
788 views

TikZ marking several blocks in a matrix

I would like to mark a few blocks in a matrix and I followed directions from other similar questions but I get a weird TikZ behavior .. seems that I can not have more than one marked block in a ...
8
votes
2answers
2k views

Matrix change row or column background

I have a matrix shown below. I would like to have the whole row green rather than only the cells ... how can I do that? \begin{equation}\label{eq:appendrow} \newcommand\x{\times} ...
5
votes
3answers
21k views

How to write an m*n matrix in LaTeX?

I tried using the below code but it works only for 2*2 matrix. \[ M= \left[ {\begin{array}{cc} 1 & 2 \\ 3 & 4 \\ \end{array} } \right] \] Now the following doesn't work for ...
20
votes
2answers
5k views

Upper triangular matrix with big zero in lower triangular?

I can represent an upper trapezoidal matrix say as shown below. I would like to replace all those zeros with a single big zero that spans across the low triangle rows and columns, and maybe also add a ...
9
votes
3answers
443 views

How can I make LaTeX ignore height of underbrace?

I have created this matrix: With this LaTeX-Code: \documentclass{article} \usepackage[pdftex,active,tightpage]{preview} \setlength\PreviewBorder{2mm} \usepackage{amsmath,array} ...
2
votes
0answers
68 views

tikz matrix and beamer [duplicate]

Possible Duplicate: Unknown error using tikz matrix of nodes in beamer I would put the following figure in a beamer slide I tried with [ampersand replacement=\&] but it does not work ...
7
votes
2answers
783 views

Creating straight line in matrix

I need to add some straight lines inside a matrix to indicate labeling of rows, like this: How do I do that?
4
votes
2answers
245 views

How to build macros for vector-matrix operators?

Can anybody build macros for doing the following vector operations? Or are there already such macros? For example, 1) Example data: \def\a{(5,3,0)} \def\b{(5,1,6)} ...