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

learn more… | top users | synonyms (1)

1
vote
1answer
68 views

Plot correlation matrix (pdf) in LaTeX

Ok, giving up... I need to plot a correlation matrix exactly shown in the attached picture. I have 15 images in a PDF form, but the issue is that to plot these images on diagonal in LaTeX. I need to ...
3
votes
2answers
77 views

Create blocked matrix

I have created a blocked matrix as shown below: However, I'm not happy about the following three things: 1) How can I change those two demarcation lines (one with vertical bars and the other with ...
7
votes
2answers
221 views

Highlight the upper or lower triangular portion of a matrix

I previously asked this question here, but now would like to achieve the same goal with a matrix under a different construction. More specifically, how can I highlight or shade the upper or lower ...
4
votes
2answers
127 views

Matrices above matrix in LaTeX [duplicate]

Ok..How to put matrices above matrix when you work with complex equations? I have matrices, such as: I was able to wrote equation in the LaTeX first two matrices on bottom, but the 1x1 matrix on ...
4
votes
2answers
143 views

How to shade or highlight the upper or lower triangular part in a matrix?

How can I shade or highlight the lower (or upper) triangular part of a matrix in some color like Q above?
4
votes
1answer
61 views

Aligning a matrix within a matrix

I've seen a lot on this website that has helped me get started, but I have one last problem: how do I align the 0s in the first row to the matrix below them? \documentclass{article} ...
0
votes
0answers
29 views

Having some trouble with a matrix

Looking over the internet, and still can't find the reason why i am getting errors. Someone able to point me in the right direction or give me an answer? \begin{bmatrix} 1 & 1 & -1 ...
40
votes
8answers
2k views

Is there a way to automatically transpose a matrix written in Latex?

As writing matrices in LaTeX is an extremely time-consuming activity, I was wondering if a software or a site exists that automatically gave the transposed form of a matrix, that is to say, given a ...
3
votes
1answer
99 views

Why does whitespace above \vdots disappear in bmatrix?

While creating presentations with beamer, I have the problem described in broken matrix gaps in brackets. Using the solution proposed by Loop Space, I discovered that \vdots have an annoying ...
7
votes
2answers
166 views

Equation system with alignment

I want to set up a linear equation system where the individual terms in each equation are aligned with the corresponding terms in the above. Currently, my attempt looks something like this: \[ ...
4
votes
1answer
123 views

Two Sudoku tables side by side

I'm working with a Shidoku table, which is a 4x4 Sudoku table. I'm trying to place two Shidoku tables side by side, with an arrow in the middle, as to show that I'm transforming one into the other. ...
3
votes
2answers
288 views

latex equation is logging a "missing $ inserted. <inserted text> $

I have a big document and all was working good. I made a change into the parameters of the equation and now this is not compiling. I use XeLaTeX to compile normally. \begin{equation} ...
0
votes
0answers
22 views

Dotfill in a matrix [duplicate]

I would like to ask if you know how to make a row entirely filled by dots in a matrix? I tried to use the \dotfill but it isn't proper because it hasn't changed anything, everything is the same after ...
1
vote
1answer
220 views

Rotate matrix in LaTeX

I have a matrix size 25 and I need to rotate it in LaTeX so that it fits the page. How do I do?? PS.: I tried the landscape command, but it did not work because rotated the page but not its contents, ...
3
votes
1answer
63 views

How can I apply a style to elements of a submatrix of a tikz matrix?

I'm trying to apply a style for a submatrix of a matrix and ended up by passing arguments through two .list-handlers. Things don't work as I expected, again I'm just able to set either rows or columns ...
2
votes
1answer
27 views

How to put a big matrix in one column format in IEEEtran.cls? [duplicate]

The following is the code for the matrix I want to put in one column in a two column format in IEEEtran.cls. Any alternative solutions are welcome. \begin{equation} \begin{bmatrix} V_A \\ ...
0
votes
1answer
24 views

Vectors in align environment with additional split

I want to do the following: Some vectors (using pmatrix) aligned in an align environment but with a single equation number (using split): \documentclass[11pt]{article} \usepackage{amsmath} ...
3
votes
1answer
42 views

Formatting Large Equations with Matrices

I am currently working with some pretty big matrices and was wondering how I could better format them to make my final proof appear less sloppy. What formatting techniques can I use to better present ...
10
votes
3answers
275 views

Aligning matrices

Sorry if this might be a very banal question. I am fairly new to LaTeX and I am having issues with matrices alignment. I am trying to achieve pretty much what is shown in this picture, I have tried ...
2
votes
1answer
107 views

Draw augmented matrix in tikz

I'm trying to create a very simple matrix in Tikz: can anybody help me with this? The matrix should look like this: Thank you in advance for all your help!
0
votes
3answers
45 views

How to have a variable in more than two row-column in matrices?

I have a matrix say 3 by 3, in it I have a variable say G, which is 2 by 2. But I don't know how to have such a matrix variable inside another one without splitting G?
7
votes
3answers
166 views

Striking out matrix lines and columns: is Tikz the only way?

I would like to show a matrix with "strike-out lines" on some of its rows and columns. After some research I found a solution using Tikz matrices, which I reproduce here: \documentclass{article} ...
5
votes
2answers
202 views

split a multiline bmatrix

I was attempting to split up a 2 row bmatrix in two lines but was not successful. Can you help me split up the matrix. This is the effect that I wanted to get: Here is my code: ...
2
votes
2answers
47 views

Having two or more matrices centered on one line

I have the following code: $$A = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} $$ and $$B = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} $$. But this is displayed on two lines. How ...
1
vote
1answer
100 views

Matrix as node label

consider the following image (taken from here): I want to adapt this image as TikZ picture. I would represent each rectangular node of the tree as a TikZ node. Each node has two character-wise ...
1
vote
1answer
41 views

Help with align environment and split

I would like some direction as to how to get my equations to align like this: Here is my code: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} {\mathbf{u}} & = ...
1
vote
1answer
82 views

Latex Table for Dynamically generated table and traceback arrows

I am trying to fill in a table generated by a dynamic programming algorithm which requires to keep trace of the execution by inserting right or diagonally downwards arrow. An example image is below: ...
3
votes
2answers
69 views

pmatrix with \left( \frac \right)

The following MWE results in the Matrix shown in the picture. I would like the braces of the cos- and sin-functions in the first column not to touch each other. How can I achieve that? ...
4
votes
3answers
101 views

Adjusting separation between matrix entries

I have a very large matrix which overflows in the margin. I would like the matrix to fit inside the margins, but I would like to do this without rescaling it, and also without affecting other ...
2
votes
1answer
97 views

Unexpected padding in tikz matrix with one row

When I produce a matrix in tikz in brackets, and then a row vector, I find the padding before the top row (with respect to the top of the brackets) is larger for the row vector than for the matrix. Is ...
3
votes
2answers
199 views

How to control size of matrix brackets [closed]

The brackets in this matrix-vector equation have different heights. How can we use a standard size or, even better, ensure that all terms in an equation have a common size? Minimum Working Example: ...
1
vote
0answers
37 views

Error when trying to define matrix

I'm trying to define a matrix: \begin{matrix} a & b & c \\ d & e & f \end{matrix} But I'm keep getting this error: ! Missing $ inserted.<inserted text>$ \begin{matrix} ! ...
2
votes
1answer
108 views

How to typeset a tilted matrix?

I need to typeset something like this for my homework. How to do it? I am sorry I don't have an MWE as I don't even know how to start. Also, I don't need the colorings inside. Just knowing how to ...
2
votes
0answers
57 views

How to write State Spaces above, and left of Markov matrix? [duplicate]

When we write Markov chain/stochastic matrix, we write the state-spaces above the columns of the matrix and on left hand side of the rows. Can anyone help me with it specially with the case in an ...
6
votes
2answers
118 views

How to create asymetric matrix

I need to create this construction. And I wrote this code \begin{equation*} b_{12}^{(2)} = \begin{array}{ccccccc} 1 & a & b & c & d & & \\ ...
3
votes
2answers
41 views

Submatrices with in a pmatrix

I have a matrix \documentclass{standalone} \usepackage{amsmath} $ P= \begin{pmatrix} 0 & \gamma & \gamma & \gamma \\ 0 & -2\tau -\gamma & 0& 0 \end{pmatrix} $ Which looks ...
1
vote
2answers
88 views

How to: Encircle a row/column in a matrix (for Laplace expansion)

How to encircle the second row in this step of Laplace expansion or to illustrate that point in a different way? \begin{align*} \left| \begin{pmatrix}{1 & 4 & -2 & 7 & 1 \\ 0 ...
2
votes
2answers
133 views

How to group and label rows and columns in a matrix

I am trying to reproduce but I am not sure where to start. The basic matrix with the extra spaces between columns is \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...
5
votes
1answer
184 views

Matrix within matrix with numbering

What is the best way to create the below matrix in LaTeX? I tried two ways 1) using gather, pmatrix and vmatrix inside but cannot get the desired formatting \begin{gather} \begin{pmatrix} ...
4
votes
2answers
68 views

Matrix align within equation

From my code below, how do I: increase the spacing between the rows (as the denominator of the top fraction is too close to the numerator of the bottom fraction). reduce the spacing between the '+' ...
2
votes
2answers
805 views

confusion matrix using only LaTeX code

I need to make a table in this specific format A main problem is that I do not want to use any other package and want to do it in only latex code! Note: I fond a related questions but it uses TikZ ...
0
votes
0answers
16 views

how to label rows and columns of matrix? [duplicate]

i have a matrix as follows: \begin{document} \[ \begin{bmatrix} & S1 & S2 & S3 & S4 \\ W1 & 0 & 0 & 0 & 0 \\ % inserting body of the table W2 & 0 & 0 & 0 ...
3
votes
2answers
634 views

How to insert the diagonal symbol of a matrix in latex

It is common in literature to encounter the diagonal symbol when referring to matrices. For instance, if matrix A is diagonal, it can be denoted as [\A] where the "\" symbol is crossing the letter "A" ...
2
votes
1answer
83 views

Horizontal line in Matrix

This question is building from the post found here. How to move the horizontal dashed line so that it is slightly further away from the superscript "T"? Also, when this horizontal line is moved, how ...
2
votes
1answer
41 views

smallmatrix gives two different sizes

I have the following code inside a paragraph and it just looks odd to me because the two matrices have different sizes. Not only horizontally (as I'd expect) but vetrically. It just looks kind of ...
1
vote
0answers
57 views

Matrices to convert to compact form from maple to LaTeX

I have this code that I have extracted from maple to a TeX file, I want that in the PDF file that is compiled from this TeX file that it would show all the entries of the matrices $m$ and $M$, without ...
3
votes
2answers
109 views

Equation overlapping with body text

In the MWE below, my equation is clashing with the text of the body of the document and also the header. How can I get the equation to not clash/overlap with the document text? Here is my code: ...
3
votes
1answer
248 views

Creating a transition probability matrix

I would like to create a transition probability matrix, like the ones found in a textbook I'm using, An Introduction to Stochastic Modeling by Mark A. Pinsky and Samuel Karlin. The double bars are ...
3
votes
1answer
143 views

Make “cancel line” thicker

In the MWE below, I wanted: to make the cancel line with arrow slightly thicker and have the arrow end before the vertical }. Here is my code: \documentclass{article} \usepackage{amsmath} ...
3
votes
1answer
252 views

How do you draw a bimatrix for game theory using Osborne's sgame.sty guide?

Martin Osborne has a powerful guide on creating bimatrix for game theory https://www.economics.utoronto.ca/osborne/latex/ I am not familiar as to how I can incorporate a .sty file to my latex. I was ...