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

learn more… | top users | synonyms (1)

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?
6
votes
3answers
142 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
160 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: ...
2
votes
2answers
46 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
91 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
40 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}} & = ...
1
vote
1answer
76 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
68 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
93 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 ...
2
votes
1answer
86 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
153 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
37 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
107 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
115 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
37 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 ...
1
vote
2answers
83 views

How to: Encircle a row/column in a matrix (for Laplace expansion)

How to encircle the second row in this step of Laplace expansion or to illustrate that point in a different way? \begin{align*} \left| \begin{pmatrix}{1 & 4 & -2 & 7 & 1 \\ 0 ...
2
votes
2answers
127 views

How to group and label rows and columns in a matrix

I am trying to reproduce but I am not sure where to start. The basic matrix with the extra spaces between columns is \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...
5
votes
1answer
158 views

Matrix within matrix with numbering

What is the best way to create the below matrix in LaTeX? I tried two ways 1) using gather, pmatrix and vmatrix inside but cannot get the desired formatting \begin{gather} \begin{pmatrix} ...
4
votes
2answers
66 views

Matrix align within equation

From my code below, how do I: increase the spacing between the rows (as the denominator of the top fraction is too close to the numerator of the bottom fraction). reduce the spacing between the '+' ...
2
votes
2answers
683 views

confusion matrix using only LaTeX code

I need to make a table in this specific format A main problem is that I do not want to use any other package and want to do it in only latex code! Note: I fond a related questions but it uses TikZ ...
0
votes
0answers
15 views

how to label rows and columns of matrix? [duplicate]

i have a matrix as follows: \begin{document} \[ \begin{bmatrix} & S1 & S2 & S3 & S4 \\ W1 & 0 & 0 & 0 & 0 \\ % inserting body of the table W2 & 0 & 0 & 0 ...
3
votes
2answers
521 views

How to insert the diagonal symbol of a matrix in latex

It is common in literature to encounter the diagonal symbol when referring to matrices. For instance, if matrix A is diagonal, it can be denoted as [\A] where the "\" symbol is crossing the letter "A" ...
2
votes
1answer
72 views

Horizontal line in Matrix

This question is building from the post found here. How to move the horizontal dashed line so that it is slightly further away from the superscript "T"? Also, when this horizontal line is moved, how ...
2
votes
1answer
36 views

smallmatrix gives two different sizes

I have the following code inside a paragraph and it just looks odd to me because the two matrices have different sizes. Not only horizontally (as I'd expect) but vetrically. It just looks kind of ...
1
vote
0answers
56 views

Matrices to convert to compact form from maple to LaTeX

I have this code that I have extracted from maple to a TeX file, I want that in the PDF file that is compiled from this TeX file that it would show all the entries of the matrices $m$ and $M$, without ...
3
votes
2answers
102 views

Equation overlapping with body text

In the MWE below, my equation is clashing with the text of the body of the document and also the header. How can I get the equation to not clash/overlap with the document text? Here is my code: ...
3
votes
1answer
223 views

Creating a transition probability matrix

I would like to create a transition probability matrix, like the ones found in a textbook I'm using, An Introduction to Stochastic Modeling by Mark A. Pinsky and Samuel Karlin. The double bars are ...
3
votes
1answer
135 views

Make “cancel line” thicker

In the MWE below, I wanted: to make the cancel line with arrow slightly thicker and have the arrow end before the vertical }. Here is my code: \documentclass{article} \usepackage{amsmath} ...
3
votes
1answer
236 views

How do you draw a bimatrix for game theory using Osborne's sgame.sty guide?

Martin Osborne has a powerful guide on creating bimatrix for game theory https://www.economics.utoronto.ca/osborne/latex/ I am not familiar as to how I can incorporate a .sty file to my latex. I was ...
2
votes
2answers
173 views

Coloring elements of a block of a matrix

Assume I have the matrix A = [ a_11 a_12 a_13 a_14; a_21 a_22 a_23 a_24; a_31 a_23 _a33 a_34; ] where a_ij are numbers and I want to draw in red color the elements of the 3 x 3 ...
5
votes
2answers
117 views

Typesetting inline row vector

I have (another) question on typesetting inline row vectors. I'm using amsmath and mathtools. I'm aware of the smallmatrix environment. Unfortunately, the elements of the vector get scaled. This ...
2
votes
2answers
75 views

increase the vertical space between rows of a matrix

\documentclass{amsart} \usepackage{amsmath}% \usepackage{amsfonts}% \usepackage{amssymb}% \begin{document} \begin{align*} \tau_A \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} ...
2
votes
2answers
282 views

Drawing this matrix using Tikz

I have a matrix which has certain properties. To illustrate these properties, I would like to generate the following image using Tikz: Additionally, I would like the following things on the image: ...
3
votes
3answers
246 views

i want put following matrix in latex

Hi every body i have problem with following matrix actually I cant put this matrix in latex thanks for help
5
votes
2answers
358 views

Vertical space in bmatrix

I have matrices with dense expressions in them and I'd like to loosen the matrix brackets a little. I'd like to be able to control the horizontal distance from bracket to first letter (both sides) and ...
2
votes
3answers
162 views

Matrix exceeds column width for IEEEtran format

I'm trying to fit this matrix within one column. But it is exceeding the limit and overlapping with the column beside of it. \documentclass{IEEEtran} \usepackage{amsmath} \begin{document} $e^{At}$ = ...
18
votes
1answer
616 views

Matrix product illustration

I would like to write the presentation of the matrix product by putting the two matrices in diagonal, giving an easy-to-remember method to compute the coefficients. Wikipedia has the following ...
4
votes
1answer
37 views

aligning a matrix with its label

Suppose I have the following latex code which draws a matrix within a matrix as follows where the cell (1,2) of the outer matrix is a vector that defines the column labels and the cell (2,1) of the ...
2
votes
1answer
91 views

Trying to do a theta, inside a fraction, inside a matrix. Getting errors

Trying to show a Jacobian matrix from r, theta. \begin{center} J = \begin{bmatrix} \frac{dr}{dx} && \frac{dr}{dy} \\ \frac{d \theta }{dx} && \frac{d \theta }{dy}\\ ...
2
votes
2answers
101 views

Matrix equation

I'm a new user in texmaker. How can I produce this equation? Thank you for your help
0
votes
0answers
14 views

How to write exacly over/under a column of a matrix without altering \left( \right) [duplicate]

I have generic matrix \left( \begin{matrix} a & b \\ c & d \end{matrix} \right) and I need to write exacly over/under a column of the matrix without altering \left(, \right). In ...
1
vote
2answers
122 views

Creating a Big Matrix

I need to create this but I have no idea how because I'm just a beginner. \usepackage{tabu} \begin{document} ...
5
votes
2answers
219 views

Square pictures as symbols

I have some square pictures in eps format which should be regarded as mathematical symbols. Each square picture consists of a blank square with some drawing in the center. I would like to be able to ...
1
vote
1answer
1k views

How to create a simple partitioned matrix

I wish to create a matrix as displayed in the encircled region on the right (taken from here) However, the code on the left does not seem to be generating the vertical through the matrix. Instead I ...
6
votes
2answers
231 views

Brackets not tall enough with smallmatrix from amsmath

The following MWE shows that when I typeset a matrix using the smallmatrix environment from amsmath, and wrap it in a \left( \right), the parentheses generated are not big enough to reach the ...
7
votes
2answers
164 views

How to produce nested matrix with labels just using the amsmath package?

I am trying to create this matrix in Microsoft word 2010 with mathtype and since mathtype just uses the amsmath package, I should only use this pckage in my latex code. Can anyone tell me what code ...
2
votes
2answers
192 views

What's the problem with this code? Overfull \hbox

I want to create something like this in word by MathType 6.9 But I have MikTex 2.9 and texmaker installed on my computer. Just to try out the code and see what is wrong with that, I've created the ...
3
votes
1answer
90 views

print the rows of a matrix in two different sections in order to prevent the elements from mixing together

As you see in the following picture I have a 4x4 matrix and the elements are so lengthy that they will not fit in a single line of an A4 paper. In fact this equation is printed in a book that I'm ...
0
votes
0answers
76 views

ieee trans long equation with matrix

I have a long equation to type. I just simply used \begin{equation} \end{equation} but the equation shows in two columns and the right part overlaps with other content. I am new to write with ieee ...