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

learn more… | top users | synonyms (1)

7
votes
1answer
825 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
108 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
657 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
191 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
2k 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 ...
6
votes
1answer
1k 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
158 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
751 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 ...
21
votes
3answers
1k 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:
6
votes
1answer
4k 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. ...
11
votes
6answers
7k 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
1k 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 ...
11
votes
1answer
6k 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 ...
4
votes
1answer
849 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
2k 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} ...
6
votes
4answers
4k 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 ...
6
votes
2answers
2k 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 ...
6
votes
2answers
1k 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
639 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
485 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
524 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 ...
6
votes
1answer
7k 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
1k 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
2k 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
839 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
1k 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?
5
votes
2answers
3k 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
945 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 ...
18
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
302 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[ ...
10
votes
2answers
1k 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 ...
14
votes
4answers
7k 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} ...
14
votes
3answers
103k 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 ...
26
votes
2answers
13k 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 ...
11
votes
3answers
638 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
76 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 ...
8
votes
2answers
2k 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
314 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)} ...
16
votes
1answer
20k views

How do I get normal-sized fractions in my matrices?

I would like to write something like the definition of a gradient operator in cartesian coordinates. \usepackage{amsmath} \begin{equation} \nabla \Phi = \begin{pmatrix} \frac{\partial ...
13
votes
4answers
2k views

Drawing Young tabloids

I would like LaTeX to produce output like the following (without the 2 a so called Young tabloid), ideally by writing \ytabloidshort{123,56} (using one character per cell, ideally allowing ...
2
votes
1answer
461 views

How can I write a matrix using the whole page width in a two-colum document?

How can I write a big matrix (or array) in the width of the page while using two columns for all paper? I know that for figures (figure*) can be used, is there any way to do it for arrays?
4
votes
1answer
17k views

Problem putting matrix operations in an equation [duplicate]

Possible Duplicate: Errors in matrix equation? I'm trying to use official equation container for the first time, and it's giving me some trouble. I have this equation of a simple matrix ...
5
votes
1answer
5k views

LaTeX doesn't recognize \end{array}

Following code ... \begin{align} \begin{array} 1 & 2 & 3\\ 1 & 2 & 3 \end{array} \end{align}... results in numerous errors: - Argument of \array has an extra } (line 0) - ...
8
votes
2answers
401 views

Align the length of two nodes inside a matrix

I wanted to create a node with vertical and horizontal parts. So after some searching I found that I can achieve this by using a matrix. I tried the code below: \documentclass{article} ...
2
votes
2answers
2k views

Writing big block matrix in double column using IEEEtran class

I'm writing a paper in IEEE journal format. I have a BIG matrix as follows: \begin{align} \begin{bmatrix} \begin{pmatrix} E^\top KA &0 \\ 0 &V^\top E^\top U \hat{K} U^\top AV \end{pmatrix} + ...
3
votes
1answer
2k views

How to resize a matrix?

I want to see How to reduce the size of a matrix ? I have this code: \begin{center} \[ \begin{blockarray}{cccccc} {\{1\}\{2\}\{3\}} & ...
4
votes
2answers
429 views

Banded matrix with random entries

What is the optimal way to get banded matrices with random entries in LaTeX? By random, I mean the following: It should give me different entries after every compilation.
1
vote
1answer
121 views

Compiling errors in a matrix that correctly show up?

I have a little problem with nested arrays. The following examples give the correct matrix after a Latex=>PDF run but generate LaTeX errors ! missing $ inserted. <inserted text>, that I would ...
9
votes
1answer
5k views

centering figure

I want to put this figure (Matrix) at the center but I can't, even though the title is centered: How to do this please? I have this code : \begin{center} \begin{figure}[H] \begin{center} ...
10
votes
3answers
2k views

How to highlight a single element in a matrix?

I am trying to write out the LU decomposition of a matrix A. I am able to highlight the pivot column with elements below the pivot element except when I get to the last column. Does anyone know how I ...