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

learn more… | top users | synonyms (1)

9
votes
1answer
199 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
21 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
59 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
63 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 ...
0
votes
0answers
59 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
165 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
37 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
143 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
107 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
118 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
46 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
30 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
362 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
53 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
80 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
45 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
184 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
58 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
1answer
104 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
40 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
58 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
6
votes
2answers
79 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} \[ ...
2
votes
1answer
41 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 ...
7
votes
2answers
122 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 ...
3
votes
1answer
65 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{equation} \begin{bmatrix}[c|c] _B[T]_B ...
7
votes
5answers
208 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 ...
4
votes
2answers
36 views

mathcal error with multicolumn multirow

I get the error \mathcal allowed only in math mode when I try to compile this MWE: \documentclass[12pt]{article} \usepackage{multirow} \begin{document} \[ \left( \begin{array}{c c c c} ...
1
vote
2answers
35 views

Problem with Tikzpicture and \matrix

I need to write two words in each node for a tikzpicture. The probles is that the words are not displayed correctly [see the code below]: I want to write the two words inside a single node (e.g., ...
4
votes
2answers
78 views

Issue with putting a bracket delimited matrix inside another matrix

I was trying to make this matrix delimited by brackets within another matrix. However, I always get the following error in my command window: ! Missing \right. inserted. <inserted text> ...
5
votes
2answers
108 views

How to produce bmatrix in pmatrix?

I wish to produce the following: So, far I only achieved the following: \begin{equation} \begin{pmatrix} v_a\\ v_y \\ \end{pmatrix} \sim \mathcal{N} \begin{pmatrix} \bar{v}_a, & \sigma_a^2 ...
3
votes
1answer
63 views

Tikz: multi-line vertically aligned node

Can I align these multi-line nodes vertically? \documentclass{article} \usepackage{tikz} \usetikzlibrary{ fit, positioning, matrix, } \begin{document} \begin{tikzpicture} \tikzset{ ...
2
votes
3answers
52 views

Two-column list

Does anybody here know how to generate a two-column list like the one that appears in the attached image? I'm having a hard time making the matrices look as neatly aligned as in the shared image...
3
votes
2answers
38 views

How to improve the display of this E_ij (canonical matrix)?

Here is my attempt: \[ E_{ij} = \begin{blockarray}{ccccccc} & & \text{$j$-th column} & & \\ & & \downarrow & & \\ \begin{block}{(ccccc)cc} & & ...
4
votes
1answer
113 views

Same tikz. Two matrices. (Diagram legend)

could not figure out an answer to this one. I have a tikz diagram using tikz/matrix, and I want to have a legend next to it, also using tikz/matrix. But I do not know how to refer to one particular ...
8
votes
2answers
141 views

Increase size of fractions on multiple lines

Inside a matrix, I have some very loaded (subscripts, greek letters, \breve) fractions: \begin{equation} Q_r = \begin{bmatrix} \frac{\partial \breve{y}_r}{\partial \theta_1}\bigg|_{t_1} & ...
4
votes
1answer
79 views

Redefining \bordermatrix

Greetings to all of the community! Could anyone help on redefining the \bordermatrix to get results as shown? The initial question was about changing form of braces (and there is a thread about it) ...
0
votes
0answers
29 views

Bordermatrix without the top row

Is it possible to remove the top row from a \bordermatrix? I only need to put indices on the left of the matrix, but even if I don't enter any values, my document creates a blank line above the ...
2
votes
1answer
79 views

Block matrices with LaTeX

Does anyone know how I could write this block matrix with a LaTeX code ? For now, this is a figure I did on photoshop... And I would like it to be an equation to have a better resolution.
2
votes
1answer
49 views

Bordermatrix without brackets

I am hanging on this one since yesterday and was not able to find an example nor anything in the documentation --- maybe I am blind? What i want is a matrix with border annotations BUT without the ...
1
vote
0answers
127 views

LaTeX Error: File `kbordermatrix.sty' not found

I have the code for a transition matrix that compiles fine with a desktop editor like TeXstudio, however fails to compile in cloud-based LaTeX editors like ShareLaTeX or Overleaf: ...
1
vote
1answer
95 views

Creating a Payoff Matrix Using LaTeX Tabular Environment

I'm trying to use my limited knowledge of LaTeX to create a payoff matrix by hand. Here's my first try: \begin{tabular}{cc|c|c|} & & Player $Y$ & \\ ...
1
vote
2answers
67 views

Setting unit of matrix/ alignment problem

How can I get unit of matrix [m] as shown in figure. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{babel} \begin{document} ...
3
votes
2answers
49 views

horizontal line/rule in column vector

Trying to generate a column vector with a horizontal line/rule separating top half of the vector from the bottom half. Am starting from the following MWE: ...
4
votes
2answers
62 views

Spacing within brackets of a matrix

I am trying to add extra space after the left bracket and before the right bracket in a matrix. I've changed the column spacing with \arraycolsep, but I also want the entries right aligned. I can ...
5
votes
2answers
222 views

How to write matrices with dimensions in latex?

I am just starting to use latex, and with all the internet help i figured out how to do many things myself, but now i am stuck. How can I write what you all can see in the picture? Thanks for the ...
1
vote
1answer
35 views

Homogeneous Matrices (elements size)

I would like to homogenize the size of the elements of the two matrices, but it is impossible for now because there are these fractions. It is really ugly like this. \documentclass[paper=a4, ...
7
votes
4answers
167 views

Multiple matrix equations, alignment

I want to write three matrix equations on multiple lines so I'm using alignat. However, the widths of the matrices on each line are not equal. How can I make sure they will be? I've been looking ...
1
vote
0answers
26 views

Why do I get an error when putting more elements in a row of a bmatrix? [duplicate]

I'm using bmatrix to display a simple matrix. Curiously, this does not work with a 1x11 matrix, while it does work with a 1x10 matrix: This works just fine: $$ \begin{bmatrix} a_1 & a_2 & ...
4
votes
2answers
87 views

Compile error with redefined bmatrix and align environment

I just spent a couple of hours finding the reason for compiling errors in the last example in here: \documentclass[a4paper,draft=true, headsepline=on, twoside , 11pt, ]{scrbook} ...