# Tagged Questions

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

79 views

### How to align columns of two separate matrices?

I have two equations involving matrices in an align environment. One of the matrices is wider than the other. How do I align them so that they are equally wide? A minimum working example: \...
51 views

### bmatrix sizes differ from each other

My problem is that the outputs of \bmatrix are a bit weird and not of the same height and the linespacings are different depending on element heights. I have put these on a blank document and I got a ...
276 views

### How can I do matrix with 1 column?

I want to make a matrix with elements like in the image: How can I do this? Thank you!
103 views

### 3x3 Normal Form Payoff Matrix in LaTeX Tabular Environment

~Disclaimer~ This question is a generalization of this question to the 3x3 case. I would like the same format as the top example in the answer to the above question; That is, "Player 1" on the left, "...
72 views

### Vertical dotted column in matrix

If I wanted to "draw" dots in entire row, I'd use for expample \hdotsfor{4}, but how can I "draw" an entire column with dots, I haven't found something like \vdotsfor. With \hdotsfor{5} we get this, ...
45 views

53 views

### Using cases in a node in a matrix

I am trying to put piece-wise functions into nodes in a Tikz diagram. Using cases works fine in a Tikz node that is separate within a tikzpicture environment. Putting the same node in a matrix breaks ...
30 views

### Creating a multiline equation [duplicate]

I am really struggling to create a multi line equation that incorporates both a matrix and a single equation that lines up the equals signs such as the one below: So far have done the following: \...
43 views

### How to align a row vector and column vector such that the row align to the first entry of the column

I have a column vector multiplies by a row vector. I want to align the row vector with the first entry of the column vector. I would appreciate any feedback.
64 views

### bmatrix in beamer not working

I'm unable to use the flags to center the column and add a dashed vertical line in the bmatrix environment. This code was working on another LaTeX file but somehow I can't make it work with beamer: \...
52 views

### How to make a matrix that wolfram and symbolab can read (ideally through lyx) dsafds

I would like to be able to visually write math equations in lyx and then copy them to wolfram and symbolab to compute the answer. For example I can copy \left(-1-\lambda\right)\cdot\left(1-\lambda\...
72 views

### How can I typeset non-square matrices?

I'd like to typeset a non-square matrix in the manner of $\begin{array}$, but I don't know how. How can I typeset a 4 x 3 matrix, for example?
51 views

### Stack of matrices with unequal sizes

I have to write a list of two matrix equations. They are almost identical, but the elements in one matrix are slightly larger than the other one, which makes it look badly. \begin{align} \begin{...
42 views

### Make column widths of multiple matrix columns equal

I have some gauss matrices in an align* environment, like this: \documentclass{article} \usepackage{amsmath} \usepackage{gauss} \newcommand{\BAR}{% \hspace{-\arraycolsep}% \strut\vrule % the ...
356 views

### Simple visualization of 3D matrix

I need to visualize 3D matrix in a way similar to this one: There are no arrows needed, I only want to have all 2D arrays fully visible, one "behind" each other and their corners connected by lines. ...
71 views

### Delete an element in a matrix

I created a matrix, but how do I delete the numbers in the matrix? \documentclass{article} \usepackage[table]{xcolor} \usepackage{collcell} \usepackage{hhline} \usepackage{pgf} \newcommand\gray{gray}...
52 views

### How to label rows and columns matrix?

I'm using LaTeX to do some basic matrix creation in a GeoGebra document as shown below: \begin{bmatrix} 0 & 0 & 1 & 1 & 0 \\ 1 & 0 & 0 & 1 & 0 \\ 0 & ...
65 views

### Draw a matrix with Latex

I did a matrix with Latex, but I do not know how how to do the colored square. Any idea please? Thank you \documentclass{article} \usepackage[table]{xcolor} \usepackage{collcell} \usepackage{hhline}...
86 views

### vertical align matrix in table

I am trying to vertical align a matrix to the content of the other cells in a table, and im pretty much stuck. Here is a quick mockup of whats my problem. In fig2 at least the content is aligned ...
101 views

### Add matrix name inside tikzpicture

I have this matrix and I would like to name it. I have to enter H = in the begining of the matrix but I cant. I tried with \begin{bmatrix} but I can't circle with TikZ. \begin{equation*} \begin{...
43 views

### color (solid) individual nodes in tikzpicture matrix

in the following MWE, I create a 'Coates diagram' I use for one of my classes. What I haven't been able to figure out is...how to colour the individual nodes? I want them to be solid, say, RGB-based ...
73 views

### Adding vertical line (equal sign) to augmented bmatrix WITHOUT using array

Is there a way to add a vertical line (equal sign) to an augmented bmatrix (4x4) WITHOUT using array? Any help provided would be greatly appreciated.
42 views

### Row Operations Error (Repost) [duplicate]

I couldn't comment on my last post, that's why it's a duplicate. I'm trying to put "arrows operations" in my matrices but I keep getting a Latex error. Could you guys help me out? I used the linalgjh ...
50 views

### Writing matrix inside an equation

I wanna type this equation. Normal equation/matrix code not working.
30 views

### How to center elements of different sizes

I would like to display some matrix things \begin{frame} \begin{align*} \left( \begin{array}{c} y_1 \\ y_2 \\ \vdots \\ y_T \\ \end{array} \...
41 views

### Row Operations Error

I'm trying to put "arrows operations" in my matrices but I keep getting a Latex error. Could you guys help me out? Thanks! \documentclass[11pt]{article} %size, document type \usepackage{fullpage} \...
41 views

### How to write the following matrix requiring both case and block array environment?

I am trying to write the attached equation using block array environment. I am suppose to use both the case and block array environment for achieving the desire output. However, I have completed ...
79 views

### Labeling rows/columns of a matrix with text and braces

I would like to label rows and columns of my matrix with formulas and text. I've started with a version using bordermatrix. \[ \underbrace{ \bordermatrix{ & \underset{\downarrow}{x} & \...
47 views

### How to add tabular lines, matrix lines to arrays in LyX?

The buttons such as Set all lines, Set right line, Set left line and Set bottom line are not activated with arrays as the example on the left while they are activated on the example on the right with ...
13 views

### Permutation matrix does not compile [duplicate]

I am getting the error "extra alignment tab has been changed to \cr." This is the code that is not compiling. It compiles up until I put in 2 digit numbers into the pmatrix environment: \...
24 views

### Divide a matrix into two regions in latex by line and color [duplicate]

I have a matrix whose elements belong to two different classes, and I need to distinguish them by color. Something like this figure: Any tutorial or instruction?
69 views

### Color two columns separately in a matrix

From the solution code found here, I wanted to be able to also have a colored box around the x4 column like this: I also looked at the solution posted here that gives different colors in rows/...
95 views

### How to create augmented matrix in iBook Author using LaTeX [duplicate]

I am very new to LaTeX so please bear with me if my question is rudimentary. I searched through other questions and while this question has been answered the solutions provided did not work for me, ...
27 views

### Get an underbrace under a matrix

Hi I have a matrix that i want an underbrace under. But I do not manage to do it. \underbrace{ \begin{bmatrix} &2(r_1^T - r_2^T) &2(t_2-t_1) \\ &2(r_1^T - r_3^T) &2(t_3-t_1) \\ ...
37 views

### Is there a way to set the default alignment for mathtools matrices?

I have a lot of mathtools matrices in my document that require right alignment (and others that have other alignment): \begin{bmatrix*}[r] 1 & 0 & 0 \\ 7 & 1 & 0 \\ \end{bmatrix*} ...
115 views

### How to highlight elements of a matrix in a formula? [duplicate]

I currently have problems with hihglighting elements inside a matrix. I've red a lot of questions here, my problem is that I have a matrix formula, {N}=[AB]{E} where I would like to highlight parts ...
132 views

### 2D correlation plot matrix with shapes

Is there a straightforward way to create a correlation plot matrix similar to the figure below? The image is an example of R's corrplot package using circles, which also offers other shapes and ...
71 views

I created a matrix using easybmat and blkarrary and I would like to label the columns above the matrix. This is the code I am using and what the matrix looks like at the moment: \usepackage{easybmat}...
59 views

### Customize size for drawing box in matrix

\documentclass{beamer} \usetheme{Madrid} \usepackage{amsmath,tikz} \usetikzlibrary{matrix} \begin{document} \begin{frame}{Matrix} This is an example of a matrix. \begin{tikzpicture} \matrix [matrix ...
107 views

### “Missing \endcsname inserted” error in beamer

\documentclass[handout]{beamer} \usetheme{Madrid} \usepackage{amsmath,tikz} \usetikzlibrary{arrows,matrix,positioning} \begin{document} \begin{frame}{Matrix} This is an example of a matrix. \begin{...
36 views

### Tabular with matrix inside

Help anyone! I tried an I tried so I try my luck hopefully there someone out there with sharper tabular and matrix skills.
21 views

### Drawing box in matrix in beamer [duplicate]

\documentclass[handout]{beamer} \usetheme{Madrid} \begin{document} \begin{frame}{Matrix} This is an example of a matrix, and the box shows a submatrix. \[ \left( \begin{array}{ccc} a & b & ...
56 views

### Draw rays between matrix elements

I would like to draw the following mathematical expression. I tried a lot with the tabular environment, but I could not manage to get the wanted output. Can somebody help me with this? Another ...
128 views

### how to draw a stair matrix using tikZ in Beamer?

I am very new to Beamer and LaTeX. I want to draw a stairs matrix as attached. It should be pretty simple but I just don't know how to draw it. Please only use tikZ (and matrix) and don't use other ...
110 views

### Drawing lines along entries of matrices

I would like to demonstrate the special formula for the determinants of 3 by 3 matrices, http://www.purplemath.com/modules/determs2.htm. That is \documentclass{article} \begin{document}  \begin{...
43 views

### Equations in different part of the text not aligned

I have a problem, in my document I have two sets of similar equations but they do not align. This is the text: If $\tilde{\mathbf{p}}$ is first combined with the system of Eq.\ref{inplane:eq7} and ...
60 views

### Parentheses around a matrix

So this is the code that I have so far: \[ Y = \begin{bmatrix} Y_{1} \\ Y_{2} \\ \vdots \\ Y_{n} \end{bmatrix} = \begin{bmatrix} 42 \\ 33 \\ 75 \\ 28 \\ ...
102 views

### Fix brackets in blkarray

in the code given below, I wanted the brackets from the \blkarray matrix to match those of the original matrix given in Equ (1). The issue is, when I use the \blkarray, the brackets are too short ...