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

learn more… | top users | synonyms (1)

2
votes
1answer
404 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
124 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
448 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
97 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
3k 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
90 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
230 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
168 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
91 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
115 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
273 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
135 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
87 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
147 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
245 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
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
131 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
331 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
216 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
142 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
70 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
185 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
151 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
94 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
204 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
180 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) - ...
7
votes
2answers
353 views

Block matrix with vectors

I'm trying to typeset matrices composed of row vectors like this: It uses a bar to represent row vectors. I'd also like vertical bars to represent column vectors. What is the best way to achieve ...
8
votes
3answers
3k views

Matrix with vertical line in the middle

How can I produce the following output? More specifically, I am not sure how to produce the matrix with the vertical line through the middle on the left of the ~ symbol. Any help would be greatly ...
8
votes
2answers
763 views

How to shorten \hline in a matrix

I indicate blocks in a matrix using \hline: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \begin{bmatrix} a & b\\ \hline c & d ...
8
votes
4answers
304 views

Matrix within equation

I am having some difficulty getting this to display properly. \begin{equation} {\bf H} = -{\bf \mu} \cdot {\bf B} = - \gamma B_o {\bf S}_z = -\frac{\gamma B_o\hbar}{2} \begin{bmatrix} ...
6
votes
2answers
216 views

Vertical lines in matrices should be aligned

I'm trying to write matrices one below the other but I want the vertical lines (compare example below) to be aligned. Eventually, there will be several matrices in one document - in the example below ...
1
vote
1answer
99 views

Show a matrix in detail

Below it is a very useful command to create a matrix. But it has a short point to me since it shows Parentheses not Square brackets. My question it how should I change this to show square brackets? I ...
8
votes
1answer
274 views

Formatting an array of complex numbers with pgfplotstable

Say I have two csv files representing the real and imaginary part of a complex matrix. I would like to nicely display this matrix in LaTeX. The difficulty is to correctly round numbers and not ...
5
votes
1answer
128 views

Automatic way to match matrix heights

I have a simple matrix equation, but one of the matrices has subscripts and superscripts on both lines: \documentclass{article} \usepackage{lmodern} \usepackage[T1]{fontenc} ...
6
votes
2answers
581 views

Subequation aligning using matrix

When I use multiple matrix equations in subequation, I am doing it as in the code snippet. However, when I want to align the equations with respect to equal sign, = (commented in the code), I am ...
3
votes
1answer
337 views

Matrix environments not working

I have a strange problem. It seems I cannot use any of the matrix environments (matrix, bmatrix, pmatrix etc.). The following code will not render on my machine \documentclass[12pt]{article} ...
10
votes
1answer
1k views

How can one plot in 3D a matrix with LaTeX?

I have a problem with drawing a 3d plot in TikZ. I have a matrix of size (n*m) n is the number of points in the x-direction and m is the number of points in the y-direction and the values in the ...
3
votes
0answers
149 views

Vertical line in matrix in gauss package [duplicate]

I am currently using the gauss package since I need to write out operations between my matrices. However I am unable to add a vertical line to the far right in my augmented matrices. The gauss package ...
2
votes
1answer
361 views

How to shift yticklabels vertically?

When plotting data matrices as done here and here, the tick labels get drawn at the border of fields. They should be drawn in the center. I've tried shifting them using hspace and vspace. This works ...
2
votes
2answers
115 views

Problem with a matrix

I have to write a matrix, my code is \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \begin{document} \begin{itemize} \item ...
8
votes
2answers
310 views

Put names on top of matrix

I am trying to produce 3 matrices on the same line. And on top of the each matrix, there is a name. I tried using tabular for the names and then I use align for the matrices. However, this creates ...
4
votes
1answer
135 views

how to create columns of array

I use the following code to generate this: \begin{center} 2 Iteración\\ Fila $S_{1}$ \end{center} \small \[\begin{array}{crl} \kbordermatrix{\mbox{ }& & & & & & & \\ ...
1
vote
1answer
268 views

Resizing and line breaking for individual matrix entries

To make things easy, I have put up a pic here, I do not understand how I can reduce the size of the long entries in the matrix (the diagonal entries primarily) and also introduce line breaks so as ...
5
votes
1answer
600 views

Language support for Icelandic does not exist?

I have been trying for a few days now to get Icelandic characters. I've installed the cm-super font package and I'm using MiKTeX 2.9 on a Windows 8 Lenovo yoga btw. Anyways I've made sure that ...
7
votes
2answers
969 views

braces over matrix

I want to make an overbrace and a side brace on my matrix in order to indicate its size. How can I achieve that. \begin{pmatrix} 1 & 1 & 0 & .& . & . & 0 & 1 \\ 0 ...
4
votes
1answer
128 views

ConTeXt: Wrong mathmatrix spacing between rows in startalign-environment

When using a mathmatrix (e.g. for vectors) in between \startalign and \stopalign, the spacing between rows becomes too large. I'm running Mark IV and the problem exists on live.contextgarden.net as ...
7
votes
1answer
336 views

Change how to enter a matrix in Latex

In Matlab I can create a matrix by typing A = [1 2 3; 4 5 6; 7 8 9], for this the space is a delimiter between the entries of the matrix. I am wondering if there is a package which makes it possible ...
7
votes
2answers
144 views

How can I get the explanation borders with pmatrix?

I have asked this question in chat. How can I add the explanation borders to the below matrix? \begin{align*} C_{D_{1\succ 2}, \mathrm{increasing}} &= \underbrace{\begin{pmatrix} 1 & ...