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

learn more… | top users | synonyms (1)

0
votes
1answer
50 views

Writing matrix inside an equation

I wanna type this equation. Normal equation/matrix code not working.
2
votes
1answer
29 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
36 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
40 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
59 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
36 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 ...
0
votes
0answers
12 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
56 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 ...
0
votes
1answer
84 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
26 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
35 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
100 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
93 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
61 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: ...
2
votes
1answer
41 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
92 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. ...
1
vote
1answer
33 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
111 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
93 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} $$ ...
3
votes
1answer
42 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
50 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
89 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
110 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
106 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 ...
3
votes
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 ...
4
votes
1answer
97 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} ...
1
vote
0answers
30 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 ...
2
votes
1answer
42 views

Underbracing matrix

How to make that look OK? Please help!
6
votes
1answer
257 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} \begin{equation} G(s)=\begin{bmatrix} ...
5
votes
2answers
79 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.
2
votes
1answer
44 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 ...
0
votes
1answer
33 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 ...
0
votes
4answers
222 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?
2
votes
1answer
38 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
231 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
233 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
40 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
28 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
31 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
218 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} ...
1
vote
2answers
56 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
122 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
58 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.