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

learn more… | top users | synonyms (1)

2
votes
1answer
42 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
70 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
35 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
105 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
56 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
110 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
31 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
67 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
96 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
80 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
60 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
346 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
14 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
356 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
58 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
29 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
47 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
84 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
118 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 ...
2
votes
1answer
94 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
152 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
136 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
95 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
46 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
234 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
230 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
192 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
92 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
574 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
30 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
79 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
91 views

Matrix equation

I'm a new user in texmaker. How can I produce this equation? Thank you for your help
0
votes
0answers
11 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
113 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
208 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
322 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
207 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
149 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
160 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
77 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
56 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 ...
12
votes
3answers
414 views

Matrices in latex

Trying to create a matrix using the below markup: \begin{figure} \centering \[ \begin{blockarray}{cccccccc} I & like & nlp & mlpr & enjoy & reading & books \\ ...
4
votes
1answer
56 views

Positioning and spacing of matrices

I have the following matrix as part of the text. \usepackage{mathtools} \begin{document} $ B = \begin{bmatrix*}[r] -35833 & -31743 & -25098 & -15178 & 0 & 26332 & 83775 ...
2
votes
3answers
120 views

Shrinking or splitting some equations in a group of equations

I have a group of equations, such as /begin{gather} Eq1 // Eq2 // Eq3 // Eq4 /end{gather} Unfortunately, some of the equations in the group are too long to fit on the page. For equations that are ...
4
votes
2answers
62 views

Odd spacing due to diagonal dots in pmatrix environment

I'm trying to typeset this matrix, but it seems the spacing between the fourth and fifth lines is off, perhaps due to the diagonal dots : Here is my Latex code : \[ \mathrm{Mat}_{\mathcal B}D = ...
6
votes
2answers
283 views

How can I highlight elements in a matrix?

I'm about to use this diagram to make computing 3x3 determinants clear and easy for my students. I tried to add this picture to my lecture but it's blurred due to the bad quality of the picture. So i ...
1
vote
1answer
66 views

How can I draw the diagram in top left of the following image in latex?

How can I draw the diagram in top left of the following image in latex?
4
votes
2answers
154 views

imagesc in tikz with non-symmetric matrices and squared axis

In principle the problem is the same like in matlab2tikz imagesc TikZ/pgfplots equivalent Can somebody tell me how to adopt this snippet to plot non-symmetric matrices but with squared axis (without ...
4
votes
1answer
48 views

Can anybody please let me know what I am missing? [duplicate]

I have type the following code. \begin{align*} \RR = \left\{ a_1 = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}, ...
3
votes
1answer
107 views

confusion matrix with [ ] delimeters

I would like to make a confusion matrix that looks like the one on the picture. How can I achive this? Thanks