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

learn more… | top users | synonyms (1)

6
votes
1answer
582 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 ...
6
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. ...
5
votes
1answer
128 views

Automatic way to match matrix heights

I have a simple matrix equation, but one of the matrices has subscripts and superscripts on both lines: \documentclass{article} \usepackage{lmodern} \usepackage[T1]{fontenc} ...
5
votes
1answer
228 views

Array Alignment using TikZ Matrices; cell over a complete row

I want to align subplots in a pgfplot. with \matrix it is easy to align pictures. My problem is, that I need several rows with two columns/pictures and a last row with a picture over both columns. ...
4
votes
1answer
426 views

Problem with \cdashline and package arydshln

I have a problem with \cdashline. I use the \cdashline in a matrix but I have an error with \usepackage{arydshln} I think: ! Use of \x doesn't match its definition. \LT@array ->\adl@arrayinit ...
4
votes
3answers
1k 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 ...
4
votes
1answer
397 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
332 views

Underline multicolumns in tikz matrix

In a TikZ matrix, how can I underline multicolumns automatically as follows (esp. when height of one header cell is larger than others): MWE from this question: \documentclass{standalone} ...
10
votes
1answer
2k views

Aligning matrix nodes in tikz

Another question about aligning nodes using matrices in tikz. Consider the following: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix ...
10
votes
2answers
6k views

Matrix in small size

Does anyone have a good idea for an alternative matrix definition with a font size between the standard size used for say pmatrix and the \scriptstyle size used by smallmatrix? I have several vectors ...
8
votes
1answer
419 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{ ...
8
votes
2answers
17k 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 ...
8
votes
2answers
3k views

Create a math matrix in TikZ partition lines

I want to draw a math matrix in TikZ, where I can draw helping partition lines. So far I found it pretty simple to just draw a matrix with brackets. \begin{tikzpicture} \matrix [matrix of math ...
7
votes
1answer
362 views

Matrix vertical alignment in combination with double spacing

Why does the following code mess up the vertical alignment in the matrices? \documentclass{article} \usepackage{amsmath} \usepackage{setspace} \doublespacing \begin{document} The first case is ...
7
votes
1answer
395 views

Twist a single line matrix in TikZ

I have a single line matrix made with TikZ: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \node [matrix,fill=white!20,draw=blue] (my matrix) ...
6
votes
1answer
168 views

Gauss package: gmatrix not equivalent to corresponding amsmath environment

The following quote is taken from the gauss package documentation: The package defines a new matrix environment gmatrix which behaves just like Latex's and AMS-Latex's matrix. But when using ...
6
votes
1answer
210 views

How to model {smallmatrix} with {array}?

It is pretty normal, I guess, to use \begin{array} ... \end{array} to model matrices, when more control is required than you get with pmatrix, bmatrix, etc., with the proper \left and \right, and the ...
6
votes
2answers
147 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
603 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 ...
6
votes
1answer
635 views

Problems with a matrix of multipart nodes

Just for fun I wanted to reproduce the memory of Can't get split rectangle to shrink small enough in this TikZ picture using a matrix of nodes avoiding the use of \foreach loops to place nodes. My ...
6
votes
2answers
3k views

Putting a tabular in a node within a matrix

I have a picture in which each of the nodes looks something like this: \node (species1) [shape=rectangle,draw] { \begin{tabular}{c c c} \multicolumn{3}{c}{{Species 1}} \\ \colorbox{red}{G1a} ...
5
votes
2answers
226 views

Isometric Tables in LaTeX

Can someone please help me with a simple LaTeX code to draw something like the attached picture?
5
votes
1answer
182 views

Trouble creating properly aligned matrix within a matrix

I'm trying to insert parentheses around a group of elements creating a matrix within a larger matrix. So far I have this: \begin{equation} \begin{bmatrix} \begin{matrix} 0 & 0 \\ 0 & \omega_0 ...
5
votes
1answer
754 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 ...
5
votes
1answer
2k 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
2answers
2k views

How do I typeset vertical and horizontal lines inside a matrix?

(From the notation used in course notes for Stanford CS229 available online.) I'm trying to typeset the following matrices made up of row or column vectors: Any ideas?
4
votes
3answers
667 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 ...
3
votes
1answer
52 views

Need to represent information about a matrix, attached image showing what is needed [duplicate]

The following matrix is of size $10 \times 10$, however it is representing an $m \times m$ matrix. Hence I need to signify that the first five columns represent terms $0$ to $\frac{m}{2} - 1$ and the ...
3
votes
2answers
142 views

is it possible to add dashed lines between rows/column of pmatrix from amsmath?

I wish these packages from amsmath have more options! Is there a way to add a macro to add dashed lines between rows and columns for a matrix typeset using pmatrix? Similar to what is being asked ...
3
votes
1answer
142 views

Applying Matrix Operation Code

I'm (relatively) new to LaTeX, and I'm having a syntactic problem using the wonderful code here, which allows arbitrary matrix operations in LaTeX. I wrote a macro to generate certain matrices. ...
3
votes
0answers
149 views

Vertical line in matrix in gauss package [duplicate]

I am currently using the gauss package since I need to write out operations between my matrices. However I am unable to add a vertical line to the far right in my augmented matrices. The gauss package ...
3
votes
1answer
232 views

How to position “=” mid-line inside a '\raisebox' and then `align` using `&=` with expression below?

In order to get a full stop at the bottom, rather than mid-line, after an aligned matrix expression, I have raised the expression using a raisebox, and adjusted space using `vspace'. This is now ...
2
votes
0answers
70 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 ...
2
votes
1answer
621 views

Adding text over matrix in LaTeX

I am trying to accomplish this in LaTeX. j ⎡a b c⎤ |d e f| ⎣h i j⎦ so that the "j" is aligned with the center of the matrix. It seems like I can't use the \begin{align} ...
2
votes
1answer
305 views

using easybmat and tikz packages together?

In continuation to this question, I was looking for a way to add nice diagonal lines inside a BMAT matrix to express a band structure of the matrix. However, a LaTeX file with both TikZ and easybmat ...
1
vote
1answer
94 views

Wrong (too much) vertical space above \vdots in small matrix

If one uses \vdots in a smallmatrix-environment the vertical spacing above the dots is too large. It is the same spacing as in a normally sized matrix-environment. Minimal working example: ...
1
vote
1answer
339 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