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

learn more… | top users | synonyms (1)

4
votes
2answers
172 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
68 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
102 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
153 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
1k 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
198 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
121 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
188 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
104 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
204 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
450 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
337 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
299 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
89 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
505 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
212 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
83 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
116 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
60 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
485 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
132 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
725 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
101 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 & ...
7
votes
2answers
4k 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
101 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
257 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
184 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
101 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
122 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
299 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
155 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
91 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
158 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
274 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
1k 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
2k 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
132 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 & . & . ...
5
votes
3answers
360 views

Tikz matrix: Align node to center of multirow

I am having an issue with TIKZ, or matrices ... I don't know which :) All I want to do is to move/align my Blackbox in the center of this one (multi-)row while having the arrows spread evenly on the ...
4
votes
1answer
228 views

Determinants inside matrix

I am typing in .tex a solution using Cramer method but I can't find a way to write those matrixes inside the main matrix. Is there an easy way to do that?
6
votes
0answers
59 views

Simple way to draw Hadamard matrices (black/white grids) from external input [duplicate]

I want to draw Hadamard matrices of different sizes. This are matrices which have entries +1 and -1 (plus some other properties). Hadamard matrices are often pictured as black/white grids like I'm ...
3
votes
1answer
155 views

Applying Matrix Operation Code

I'm (relatively) new to LaTeX, and I'm having a syntactic problem using the wonderful code here, which allows arbitrary matrix operations in LaTeX. I wrote a macro to generate certain matrices. ...
4
votes
1answer
72 views

How to place the item bullet at the top of a multiline item?

I have the following LaTeX code: \documentclass[]{article} \usepackage{amsmath} \begin{document} \newcommand{\A}{\begin{bmatrix} 1 & 0 \\ 0 & 1\end{bmatrix}} \newcommand{\B}{\begin{bmatrix} ...
10
votes
3answers
191 views

How to provide more horizontal space between cases in a system?

I have the following ugly system: This is my LaTeX code: \newcommand{\Aaa}{\begin{bmatrix} 1 & 0 \\ 0 & -1\end{bmatrix}} \newcommand{\Ba}{\begin{bmatrix} 0 & 1 \\ -1 & ...
9
votes
1answer
158 views

Matrix looks flat

I would like to typeset a partitioned matrix in LaTeX with dashed lines. After a quick search on TeX.SE, I found this post with a nice example of such matrices. I tried it on my computer and the ...
4
votes
2answers
101 views

How to Correct Entries in a Matrix Going Beyond Delimiters Using fouriernc

I'm using the bmatrix environment with fractional entries. My problem is that the fractions extend beyond the "edge" created by the brackets. I know there are other environments that could be used. ...
4
votes
2answers
247 views

equations inside matrix/array — aligning on charater

Suppose I have a system of equations I'd like to present as a vector. Using amsmath, something like \begin{equation} \begin{pmatrix} (2)(2)+(-1)(-3) \\ (4)(2)+(3)(-3) \end{pmatrix} \end{equation} ...
5
votes
3answers
203 views

fit a very wide matrix

I'm tring to fit a 4x4 matrix that has long formulas as elements to A4 width. \documentclass[]{scrbook} \usepackage{amsmath} \begin{document} \begin{math} \begin{bmatrix} cos(a1)*cos(a4) - ...