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

learn more… | top users | synonyms (1)

4
votes
1answer
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: \...
1
vote
2answers
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 ...
2
votes
2answers
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!
1
vote
1answer
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, "...
1
vote
2answers
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, ...
3
votes
1answer
45 views

! Missing $ inserted when try to using superscript in matrix in beamer

I got the ! Missing $ inserted mistake message when I try to use superscript inside a matrix environment in beamer. The following is my code \begin{frame} \begin{pmatrix} \hat{\...
6
votes
1answer
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 ...
0
votes
1answer
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: \...
1
vote
3answers
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.
0
votes
1answer
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: \...
2
votes
1answer
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\...
1
vote
1answer
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?
1
vote
2answers
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{...
1
vote
1answer
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 ...
3
votes
2answers
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. ...
4
votes
2answers
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}...
1
vote
0answers
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 & ...
2
votes
0answers
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}...
3
votes
2answers
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 ...
8
votes
1answer
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{...
2
votes
1answer
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 ...
3
votes
2answers
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.
1
vote
0answers
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 ...
0
votes
1answer
50 views

Writing matrix inside an equation

I wanna type this equation. Normal equation/matrix code not working.
2
votes
1answer
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} \...
0
votes
0answers
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} \...
1
vote
0answers
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 ...
2
votes
1answer
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} & \...
3
votes
1answer
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 ...
0
votes
0answers
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: \...
1
vote
0answers
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?
0
votes
1answer
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/...
0
votes
1answer
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, ...
0
votes
1answer
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) \\ ...
4
votes
1answer
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*} ...
6
votes
1answer
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 ...
2
votes
1answer
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 ...
3
votes
1answer
71 views

Block matrix with headings

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}...
2
votes
1answer
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 ...
1
vote
0answers
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{...
1
vote
1answer
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.
0
votes
0answers
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 & ...
1
vote
3answers
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 ...
2
votes
2answers
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 ...
2
votes
1answer
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{...
3
votes
1answer
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 ...
1
vote
1answer
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 \\ ...
4
votes
2answers
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 ...
4
votes
1answer
120 views

Error when using tikz \node, \subnode

In the code below, building off solutions found here, I am trying to use the \node and \subnode options to draw the arrow, but I cannot get the file to compile. Can you help me to fix the code to get ...
1
vote
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 ...