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

learn more… | top users | synonyms (1)

5
votes
3answers
427 views

Equal spacing in matrix

I'm trying to create a matrix that has equal spacing between each of the columns, but so far I have not been very succesful. The code I'm using right now is \documentclass{article} ...
0
votes
1answer
141 views

Blocks in matrix [duplicate]

I am looking for something that looks like: Does anyone have an idea as to how to implement this?
7
votes
3answers
347 views

Writing a matrix over two lines

I want to write a big matrix and I want to write it in two lines like the picture but I cannot find the way!
11
votes
3answers
320 views

Avoiding overlapping superscripts and subscripts in matrices

I was working on some calculus today and tried to typeset a matrix of partial derivatives and ran into some trouble. Here is my code: \documentclass{minimal} \usepackage{mathtools} \begin{document} ...
4
votes
2answers
208 views

Matrix color blocks

I am looking to produce a matrix multiplication where one of the matrices consists of coloured blocks. Much like: Is there any way to produce something like this in Latex?
9
votes
4answers
415 views

Squares in Matrix

I would like to write a matrix equation, where the matrix contains equally sized coloured blocks on the diagonal. Something like: Does anyone have any idea how to go about this?
3
votes
4answers
114 views

Alignment of entries in matrix

I have this pmatrix (amsmath package): \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{pmatrix} \frac{a}{b} & \frac{a}{b} & 0 & ...
1
vote
1answer
43 views

Is there any way to get something like pmatrix with customizable grid lines between cells? [duplicate]

In the document I have to describe a series of transformations, made with a matrix. Each transformation works only on 2x2 or 1x1 block, so I want to visually select this block in the matrix like this: ...
4
votes
2answers
139 views

Matrix or Table with uneven number of columns

I want to achieve something like following: Is there a way to achieve this in latex? Thanks for your help.
2
votes
0answers
41 views

Is there a shorthand for matrices that doesn't use an environment [duplicate]

I understand that environments are very nice where the content is complex. But for simple cases, the \begin and \end and duplication of the environment name gets quite wordy and dominates the actual ...
4
votes
2answers
121 views

Problems Using AVM package for LFG structures

I am trying to draw LFG f-structure matrices using the avm package (https://www.essex.ac.uk/linguistics/external/clmt/latex4ling/avms/). For some reason my avm objects do not respect the \\ command, ...
2
votes
1answer
65 views

Alignment of Matrix Equations

I want the code below to appear in one line but the last array (the transposed one) appears on the line below. What should I do? \begin{equation} X'X=(V_r,V_{p-r}) \[ \left( \begin{array}{cc} ...
7
votes
1answer
85 views

Recursive block matrix

I am currently writing a document in which I need to create a matrix that looks like the picture below. What is the shortest and easiest way to do so?
7
votes
2answers
122 views

Commutative diagram with matrices as objects

I would like to create a diagram which has matrices as objects and arrows between these matrices. In particular, I'd like to have four matrices, two matrices in the upper row, and two in the lower ...
2
votes
0answers
43 views

Labelling Columns of a Matrix [duplicate]

I have a 3-by-3 matrix. I want to label the columns as R, E, and D for instance. How can I achieve this in LaTeX? I am using $$ ... $$ environment for writing this matrix.
10
votes
3answers
562 views

How do I make a small pmatrix?

I want a small matrix but the only command I can find is \smallmatrix which leaves the brackets out. Is there a simliar one that includes brackets?
0
votes
0answers
18 views

Centering Two Matrices and Putting Them Side By Side [duplicate]

Here is the portion of my code that is rather bothersome: \begin{center} \begin{matrix} E_1 \\ E_2 \end{matrix} \begin{bmatrix} 1 & h & 2 \\ -5 & ...
6
votes
4answers
187 views

Side to side sum+product of matrices

I have been trying to write these matrices which are the results of a cointegration problem. However, I'm struggling to write down the second member of my matrices. As you can this is my code: ...
4
votes
2answers
108 views

Vertical Alignment of Matrix Cells

In the equation below, I would like to have the horizontal dashed lines that seperate different cells of the matrix to be vertically aligned. Furthermore it would be nice if the square brackets of ...
9
votes
2answers
172 views

How to add equations on top of arrows?

I have the following matrix: $$ \left[ \begin{array}{ccc|c} -4&2&-2&10 \\ 1&0&1&-3 \\ 3&-1&1&-8 \end{array} \right] \sim $$ I want to have something like this: ...
3
votes
1answer
91 views

Highlighting in tabular environment

I am trying highlight a row of matrices in a tabular environment. However, the left brackets of the matrices are gone. And I don't know how to fix this. In addition, how can I highlight 2 elements ...
8
votes
3answers
193 views

Align matrices problem

I have an equation of matrices and I want to align the dimensions of the matrices below the equation of matrices. However, I produce something very ugly. Can someone advise how to make it look better ...
4
votes
2answers
247 views

Help me input a column vector

I'm trying to input an arrow vector (a column vector, see the picture) in an align environment, but it reports an error. Can someone show me the TeX code of it in an align environment?
2
votes
0answers
229 views

Bold bracket row vector/matrix

i want to define a matrix-vector product, which is defined something like this: \left[\begin{array}{cccc} A & B & C & D \end{array}\right] \left[\begin{array}{c} u \\ v \\ w \\ y ...
6
votes
1answer
143 views

Combining rows and columns in array

I am trying to write some kind of blockmatrix \[A_n= \left( \begin{array}{cc|cc} && 0 & 0 \\ & A_{n-2}&n-2&0 \\ \hline\\ 0&-n+2&1&n-1 \\ ...
0
votes
1answer
81 views

Two line expressions using a single bracket

I want to fit two expression inside a large bracket something like this: I looked some of the examples like this one, however, I need variables such as x1 instead of 1. Help appreciated.
8
votes
2answers
466 views

Sub-matrices within a matrix

How can I draw the following type of matrix without changing the horizontal alignment of the column entries: | c11 c12 c13 c14 c15 c16 c17 | c18 c19 | | | c21 c22 c23 c24 | c25 c26 | c27 ...
6
votes
3answers
168 views

Add between row spacing in a complex matrix

I have the following matrix: \documentclass{article} \usepackage{amsmath} \begin{document} $\begin{bmatrix} \begin{vmatrix} 168 & 368 \\ 368 & 1026 \end{vmatrix} & \begin{vmatrix} ...
2
votes
1answer
76 views

skip a line aside a matrix [closed]

Well, This is what I tried to compile If you compile it the sequence of number will be next to the matrix, but I want it to be in other line. Do you know how to do that space? Thank you so much in ...
8
votes
1answer
105 views

How to do these lines within a matrix?

i try to do this: (http://www7.pic-upload.de/19.12.13/547iej1463a4.jpg) How to do that? Can you help me? Here is my code for the matrix without the lines: \left [ \begin{matrix} r_{11} & ...
5
votes
1answer
56 views

Using a macro with ifx inside of a bmatrix

The following code does not compile if I don't have the extra braces around the entries of the matrix, and I don't know why. Can I modify \switcher to obviate the need for these extra braces? ...
3
votes
0answers
42 views

How can I redefine (or alter) the bmatrix envrionment such that all entries are flushed right? [duplicate]

I've checked around here and have been unable to find anything that solves my problem. There are several other questions that ask similar things, but the solutions do not give a global way to apply ...
2
votes
1answer
349 views

How to change the width of a column individually in tikz matrix

I want to individually change the width of the different columns in the following matrix: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[font=\small] ...
3
votes
1answer
115 views

how to xshift tikzmark and preserve interrow spacing in matrix

I am trying to use the \tikzmark command to overlay a right brace with a label next to a pmatrix. Unfortunately, there are two problems with the current output: My code has introduced extra vertical ...
11
votes
3answers
358 views

How to create diagonal matrix with an aligned diagonal?

How do I display truly diagonal matrices? I want to have a diagonal bloc matrix. The solution below has several problems : the diagonal terms aren't really aligned in the first half, and the diagonal ...
0
votes
2answers
93 views

How to built an abstract matrix? [duplicate]

I want to built a matrix like the picture: Have a trial: \begin{displaymath} \left( \begin{array}{ccc} b_{11} & \ldots & b_{1j} & \ldots & b_{1j} \\ b_{21} & \ldots & ...
5
votes
2answers
2k views

Bad math environment delimiter when using \begin{equation} and \end{equation}

I wrote a matrix equation \[ \left[ \begin{array}{c} v^{0}_{n} \\ v^{K-1}_{n} \end{array} \right] = -\frac{1}{C_{ref}} \left[ \begin{array}{ccc} V^{0}_{0,n} & \cdots & ...
0
votes
0answers
73 views

Equivalent of Latable for matrix/vectors generation

Does anyone know an equivalent for Latable (which is used to generate latex code for tables) but to do the same thing with matrices and arrays ?
7
votes
1answer
211 views

Matrix derivation

I would like to display a matrix with a dot (derivative) on top of it. The entry of this matrix shall consist of arbitrary symbols. When I write \begin{align} \dot{\begin{pmatrix} x \\ y ...
6
votes
1answer
141 views

Gauss package: gmatrix not equivalent to corresponding amsmath environment

The following quote is taken from the gauss package documentation: The package defines a new matrix environment gmatrix which behaves just like Latex's and AMS-Latex's matrix. But when using ...
3
votes
2answers
77 views

\newcommand for bmatrix of features using pgffor throws missing \endgroup error

There are two parts to this question. Mainly, I'm interested in implementing a \newcommand that can take an arbitrary number of arguments to be set in a single column of a matrix. I tried the ...
5
votes
1answer
111 views

Labeling the columns of matrices

I am trying to TeX a transition matrix for a Markov process and I want to be consistent with our textbook and label the columns and rows. I found \kbordermatrix and that let me produce: ...
1
vote
0answers
254 views

Tridiagonal matrix [closed]

How can I reduce the size of the symbols in every element in the tridiagmatrix? It gets to large, and the ddots don't point in a straight diagonal line, the don't connect with each other. That's ...
1
vote
1answer
127 views

Vertical alignment in matrix alignment with cylinder

In the following MWE, the nodes in the matrix are not properly vertically aligned: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture}[sibling ...
4
votes
1answer
84 views

In standard, interpret characters as vectors

I need to write many equations with way more matrices and vectors than scalars and I would like to have LaTeX interpret "normal" characters as vectors and matrices. Consequently I need to mark the ...
6
votes
2answers
129 views

How to draw a matrix with some framed elements, and some arrows between two frames?

I will do a drawing work. It is a matrix which would emphasize some elements, as follow I know the pgf's node matrix could easily add a frame to element, but how to add the arrow?
6
votes
4answers
212 views

Multiple underbraces that span overlapping columns in matrix

I want to display the structure of a matrix as shown in the image below: The following code shows the structure of the matrix, without the underbraces: \documentclass{standalone} ...
3
votes
2answers
805 views

2 or 3 matrices side-by-side

How to write the above 2 and 3 matrices side-by-side in Latex ?
9
votes
3answers
1k views

Underbrace in a matrix

I want to display the structure of a matrix as shown in the image below: Can this be done using pmatrix and \underbrace? My attempt at combining pmatrix and \underbrace results in a compile error. ...
2
votes
1answer
130 views

questions about matrix

I want to create a simple matrix and the code is given below, but I got error when I compile it. Could anyone help with this? $$e^{-{\cal L}= \left[ \begin{array}{cccccc} 1 & 0 & . & . ...