# Tagged Questions

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

92 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 &...
137 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} \usepackage{...
206 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} ...
69 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 '+' ...
927 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 ...
16 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 &...
775 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" ...
94 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 ...
46 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 ...
57 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 ...
116 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: \...
270 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 ...
162 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} \...
272 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 ...
217 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 ...
128 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 ...
112 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} \frac{4+...
318 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: ...
280 views

### I want to typeset following matrix in LaTeX

I have a problem with following matrix. Actually I can't put this matrix in LaTeX.
463 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 ...
213 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}$ = ...
637 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 ...
38 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 ...
96 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}\\ \end{...
108 views

### Matrix equation

I'm a new user in texmaker. How can I produce this equation? Thank you for your help
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 ...
127 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} ...
224 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 ...
2k 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 ...
252 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 top/...
180 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 ...
212 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 ...
95 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 ...
82 views

### ieee trans long equation with matrix

Ihavealongequationtotype.Ijustsimplyusedbuttheequationshowsintwocolumnsandtherightpartoverlapswithothercontent.Iamnewtowritewithieee... 
460 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 \\ \begin{block}{[...
58 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 &...
147 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 ...
89 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 = \...
412 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 ...
71 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?
197 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 ...
49 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}, ...
126 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
237 views

### How to color a portion of a row in bmatrix

I am trying to color just a portion of rows of a bmatrix. How would I achieve this? Here is what I have so far: \documentclass{article} \usepackage{amsmath,mathtools} \begin{document} \[ \begin{...
71 views

### Labelling the outside of a large matrix

I've been struggling to fit a large matrix on a page, and have finally managed to fit it in, although I had to make the entries very small. Now I want label the rows and columns of the matrix. There ...
269 views

### Evenly spacing aligned matrices with different elements

I have 8 vectors that I display as bmatrix in an align environment as follows: But as you can see, the first vector is slightly thinner, making the rest unaligned aswell. How can I make the first ...
4k views

### vertical and horizontal line in a matrix

I want to create a bmatrix on the right \documentclass[10pt,a4paper]{article} \usepackage[english]{babel} \usepackage{amsmath} \begin{document} \begin{bmatrix}[c|c] _B[T]_B ...
376 views

### Dimensions of parts of a matrix

I have a matrix containing the values 0 and 1. The first column contains n_1 values of 1 and the rest is 0. The second column begins with n_1 values of 0, n_2 values of 1 and then 0 for the rest. I ...