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

learn more… | top users | synonyms (1)

2
votes
1answer
43 views

Equal spacing in two matrices with matrix entries of differing length

I try to achieve the following: I have two matrices with similar structure, but whose entries differ in length. I want the two matrices to have identical and even spacing. This is what I got so far: \...
1
vote
0answers
56 views

How to draw straight line cross element showing determinant calculation [closed]

I am working on MathJax. $ \begin{array}{|ccc|cc} 1 & 2 &4 & 1 &2\\ 3& 1 & 2 & 3 & 1\\ 2 & 4 & 0 & 2 & 4\\ \end{array} = (0 + 8 + 48) - ( 8 + 8 + 0) = ...
6
votes
1answer
238 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".
7
votes
3answers
262 views

Matrices with same height

I want to write a matrix equation and my current code is following: \documentclass[12pt,a4paper]{report} \usepackage{amsmath} \begin{document} \begin{equation} \begin{pmatrix} 1 &...
1
vote
1answer
42 views

Add a note on the left, next to a line of a matrix

I would like to add on the right to the 1 a small note <- i-th line. How to do it ? My solution so far: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \epsilon_i = \left ( \...
2
votes
1answer
29 views

Separators in array (for a matrix) have different, wrong sizes

Why is it so and how to fix it? \documentclass{article} \begin{document} \[ A = \left ( \begin{array}{c|c|c} \\ C_1 & \cdots & C_q \\ \\ \end{array} \right ) \] \end{document}
3
votes
3answers
32 views

control spacing and sizing of submatrices

How can I reproduce this matrix? my attempt so far : \begin{bmatrix} \begin{bmatrix} C_N \end{bmatrix} & \begin{bmatrix} \\ \boldsymbol{k} \\ \end{bmatrix} \\ \begin{bmatrix}& \...
2
votes
2answers
224 views

Writing fraction in matrix

I am trying to write a fraction in a matrix. I am doing it using the following code: \[ \begin{bmatrix} \frac{1}{6} & \frac{5}{6} & 0 & 0 \\ 0 & 0 & 1 & 0 \\ ...
3
votes
1answer
26 views

tabularx and pmatrix alignment issue

Why are the following entries in the table not vertically aligned? I see that the first column is too low and the second column is too high. Here is my code: \documentclass{article} \usepackage{...
1
vote
2answers
63 views

draw diagrams with \xymatrix

I'm using \xymatrix to draw a diagram and I need some of the arrows to be named with a matrix over it. To draw the matrices over arrows, I'm using the \arrow command but, unfortunately, it puts very ...
0
votes
2answers
34 views

Is this space handling of pmatrix environment official?

For example, if we enter the code \begin{pmatrix} a & b & c \\ d & e \\ f \end{pmatrix} it occurs following matrix: a b c d e f not error. My question is that this space handling ...
1
vote
0answers
35 views

Creating an Elimination Matrix with strikethrough rows/columns [duplicate]

I am writing a paper, and I need to display an elimination matrix during the steps of finding a determinant. \[ A =\begin {bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \...
3
votes
1answer
126 views

How to align matrices on top of each other?

Suppose I have the following situation (don't mind the notations, it's ring theory): \documentclass{article} \usepackage{amsmath} \begin{document} \newcommand{\mymatrix}{\begin{bmatrix} 1 &...
-1
votes
1answer
60 views

Matrix - how do i make this?

How do make this with LaTeX? I want to be able to adjust the names.. and the subscript.
1
vote
1answer
69 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
79 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
242 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
129 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
168 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
66 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} \usepackage{...
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 ...
41
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
107 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
168 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: \[ \begin{...
4
votes
1answer
129 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
324 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
239 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
68 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
26 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} \begin{...
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
286 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
184 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
240 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: \documentclass[...
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
120 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
42 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}} & = H^{-1}...
1
vote
1answer
93 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
70 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
115 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 array-...
2
votes
1answer
102 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
250 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
38 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
110 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
42 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 ...