# Tagged Questions

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

1answer
118 views

### Highlight matrix cell and have arrows pointing from cell with text [duplicate]

This code is building from the solutions posted here. I am trying the approach suggested from the duplicate solutions. I am having two issues: I am not sure how to get the arrow to point to the ...
1answer
38 views

### Custom align, three \beta = statements, so the beta is custom aligned vertically, and the matrices/vectors are all vertically aligned

Something like: \beta = [], \quad \beta = [], \quad \beta = []. So that the three forms of beta fit on one line. I want the \beta = to valign with the first element of the vector/matrix. I want ...
1answer
123 views

### colored box around a column in matrix [duplicate]

How can I go about drawing a colored box around a column in a matrix with an arrow and text like this: Here is the code that I have thus far: \documentclass[11pt]{book} \usepackage{amsmath,...
0answers
32 views

### smaller smallmatrix

I've got a Vector, and the last entries in this vector is long. Like... longer then the \linewidth. I tried using the \smallmatrix and it just fit on the page, so I was content. But it still breaks ...
1answer
46 views

### Underbracing matrix

How to make that look OK? Please help!
1answer
259 views

### why symbolic matrix is not properly displayed in LaTeX?

I'm not able to get the output of this matrix in clear way, is poorly displayed, what to do? \documentclass{article} \usepackage{amsmath} \begin{document} G(s)=\begin{bmatrix} \...
2answers
98 views

### How to have multiple signs for matrix inequality?

I want to know how to draw the three (in)equality signs vertically like shown in the figure.
1answer
54 views

### Make a tall rectangular array square

I have a tall array that I would like to make square. Unlike the solution here, which works but makes the array wider to match up with the width, I would like to decrease the spaces between rows to ...
1answer
35 views

### Application for typing matrices on OSX (or online)

Is there an application (on OSX) where you could create a matrix with the help of a graphical interface and that would produce automatically the corresponding LaTeX code? PS: I would be also ...
4answers
228 views

### What's the easiest way to draw block matrices?

I would like to draw block matrices with special structures like shown in the picture below. What's the easiest way to do that?
1answer
45 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: \...
0answers
59 views

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) = ... 1answer 242 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". 3answers 274 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{pmatrix} 1 &... 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 ( \... 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} 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}& \... 2answers 225 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 \\ ... 1answer 27 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{... 2answers 70 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 ... 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 ... 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} \... 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 &... 1answer 62 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. 1answer 73 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 ... 2answers 85 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 ... 2answers 249 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 ... 2answers 132 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 ... 2answers 184 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? 1answer 68 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{... 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 ... 8answers 3k 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 ... 1answer 115 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 ... 2answers 169 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{... 1answer 133 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. ... 2answers 346 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. ...
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 ...
1answer
250 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, ...
1answer
81 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 ...
1answer
28 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{bmatrix} V_A \\ ...
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{...
1answer
45 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 ...
3answers
300 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 ...
1answer
109 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!
3answers
46 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?
3answers
196 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} \...
2answers
272 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[...
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 ...
1answer
137 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 ...
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}...