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

learn more… | top users | synonyms (1)

7
votes
2answers
119 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 & ...
0
votes
0answers
38 views

What is space in a math environment? [duplicate]

I want to get a space to the phrase "1\times 8 \mathrm{ matrix}", how can I get it inside the math environment? \begin{align*} C_{D_{1\succ 2}, \mathrm{increasing}} &= ...
9
votes
2answers
520 views

How to typeset this in LaTeX

I would like to typeset the following matrix: However, I don't know how to achieve the braces and the dots leading to the matrix entry.
4
votes
3answers
192 views

aligning vector column

I have the next latex code: $$\begin{align*}\pi(X)f(x) = \frac{d}{dt}\Pi(e^{tX})\vert_{t=0} f(x) &= \frac{d}{dt} (\Pi(e^{tX})f(x))\vert_{t=0})= \\ &=\frac{d}{dt}(f(e^{-tX}x))\vert_{t=0} ...
6
votes
3answers
320 views

Countability of the rationals: a pictorial diagram

I am trying to reproduce the diagram below: I'm wondering what I should use to generate this. I can make the matrix, that's simple, but getting the arrows right is what's difficult... It would be ...
2
votes
0answers
63 views

Is there a way to paste a matrix cell-by-cell in Lyx? [closed]

I would like to paste a matrix in Lyx, just like it was a table (edit->paste special, etc), except into a display math matrix. Any ideas? I can't get it to work, though pasting into tables works ...
4
votes
1answer
287 views

Problem with \cdashline and package arydshln

I have a problem with \cdashline. I use the \cdashline in a matrix but I have an error with \usepackage{arydshln} I think: ! Use of \x doesn't match its definition. \LT@array ->\adl@arrayinit ...
4
votes
2answers
231 views

How can I typeset determinants of Cramer's rule? [closed]

I want to typeset the determinants of the system $\begin{cases} a_1x+ b_1y = c_1,\\ a_2x+ b_2y = c_2. \end{cases}$ I tried $D=\left| \begin{matrix} {{a}_{1}} & {{b}_{1}} \\ {{a}_{2}} ...
6
votes
2answers
180 views

How to best typeset this long matrix multiplication?

I have a quite large matrix multiplication: \begin{align*} \mathrm{Var}(\alpha)&\approx \begin{pmatrix}\sqrt{1+\pi^{2}}\exp(-\delta^{*}+\zeta^{*}) ...
3
votes
1answer
102 views

Required package for 'starred version' of matrix environment

Whenever I am trying to compile the following code : \documentclass[11pt,twoside,a4paper]{book} \begin{document} \begin{matrix*}[r] -1 & 3 \\ 2 & -4 \end{matrix*} \end{document} shows ...
7
votes
3answers
229 views

Help implementing this matrix

I'm trying to implement the matrix and vector below, the number of columns in the matrix is equal to the number of rows in the vector but it's not showing properly. The matrix is composed of three ...
3
votes
1answer
217 views

TikZ Matrix 'draw' alignment

Apologies if this has already been asked - I could not find it. The following is an example of what goes wrong: In this example I would like it to look just like a regular 2x3 table, but I think ...
14
votes
1answer
249 views

Are there specialized libraries or packages to draw blocked/partitioned/splitting matrices in Tikz?

I need to write matrix splitting and factorization operations (for my linear algebra course). It is hard to do these is direct Latex. I can use Visio to draw these easily, but I'd prefer to use Tikz ...
5
votes
1answer
115 views

Table of Values

How can something like this be done in MacTex:
8
votes
3answers
438 views

TikZ Matrix - How can I align content horizontally which is spanning over multiple cells/rows?

I'd like to finetune the big rectangle in the last column and its content, i.e. that it's all aligned to the third column's center. It is currently too far on the right: So far I have been unable ...
6
votes
1answer
103 views

Using multirow with smallmatrix

I'd like to typeset a bunch of small 3x3 matrices to describe generators of certain ideals, as in this paper, p7. Using smallmatrix works beautifully as long as I only want circles and bullets, ...
5
votes
1answer
118 views

How to key this equation with three braces on right side,

Can anyone help me to key this equation, I've been struggling here for long hours:
4
votes
1answer
69 views

fitting arrays on

How can I get two matrices to fit side by side, centred on the page? Is there a way of automatically printing to 2 decimal places? \documentclass{article} \usepackage{graphicx,amsmath} ...
3
votes
1answer
273 views

Array as subscript

While $\begin{matrix} 2 & 4 & 6 & 5 & 4 & 3 & 2 \\ && 3 \end{matrix}$ looks great for the highest root of $\mathsf E_8$, $s_{\begin{matrix} 2 & 4 & 6 & 5 ...
5
votes
3answers
184 views

Handling a too big matrix equation

I was wondering if I could rotate the equation below to fit it on a page without compromising the font size. I tried landscape and rotating packages to rotate the equation. In both cases I received ...
15
votes
5answers
837 views

Drawing a large binary matrix as colored grid in TikZ

I have a pretty big binary matrix of maybe 70 rows and 64 columns. For ease of viewing, I would like to draw this matrix in TikZ where e.g. a 1 is represtented by a red square and a 0 is a white ...
2
votes
1answer
52 views

\cline going out of matrix

I am trying to reproduce the following matrix I tried with this: \begin{equation*} \begin{bmatrix}[ccc:c] a_{11} & \cdots & a_{1n} & b_1 \\ \vdots & & \vdots & \vdots \\ ...
3
votes
2answers
2k views

How to write a permutation ?

How to write a permutation like this ?
5
votes
1answer
174 views

Array Alignment using TikZ Matrices; cell over a complete row

I want to align subplots in a pgfplot. with \matrix it is easy to align pictures. My problem is, that I need several rows with two columns/pictures and a last row with a picture over both columns. ...
20
votes
5answers
2k views

Huge matrix in my document. Possible ways to make it look better?

The following is the source for a matrix I'm using in my document: \documentclass{scrartcl} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{amsmath} ...
5
votes
1answer
129 views

Strech the text to the borders of a node by using \hfill

The text inside the nodes is not streched to the right side of the node by using \hfill. Could it be the reason that it doesn't work with font=\tiny? But I need the text that small and I would like ...
4
votes
3answers
111 views

Alignment problem between multiple line “bmatrices”

I'm having problems trying to align single and multiple line bmatrices: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{align*} x = &\begin{bmatrix} ...
3
votes
2answers
146 views

Can't reproduce sequence alignment using TikZ?

I'm new using the TikZ package. Can someone help-me to reproduce this matrix 1 using Tikz? More precisely the step in figure 2. I tried to do it with matrix but I can't put the number 1 [above ...
2
votes
1answer
125 views

Shorter way to color indices of a matrix?

I've made a bordermatrix with brackets [] instead of (), now there are these indices on the top and left side. In my case on the top they are u_1,v_1,u_2,v_2 and so on. On the left side they are ...
1
vote
1answer
579 views

Align values in bmatrix

Is it possible to renew the bmatrix environment to have alignment? I would like the following vectors to show aligned: \begin{bmatrix} -0.505 & \\ -0.141 & \\ 0.144 & \\ 0.839 & ...
4
votes
1answer
290 views

Right curly bracket around text

The following code will produce some text enclosed by a right curly bracket and to the right of it some other text saying that is the same meaning. Now, I would like to have the text aligned to the ...
3
votes
1answer
238 views

easybmat matrices dotted lines

I use the easybmat package to typeset some block matrices as follows, where the rows are separated by dotted lines. For some reason, the dotted lines don't always come out right. For example the ...
7
votes
2answers
434 views

Update matrix entries in beamer

I'm trying to show row reducing a matrix in a beamer presentation. I'd like to show successive steps of the row reduction using overlays. The following is close to what I want to do. The problem is ...
5
votes
1answer
698 views

Tikzpicture and matrix

I want use tikzpicture for draw my matrix, U=[matrix], using this code \begin{align*} U&= \begin{tikzpicture}[decoration=brace] \matrix (m)[matrix of math nodes,left delimiter=[,right ...
3
votes
1answer
178 views

bmatrix - buggy? Alternating Color and not completely drawn

As you can see, my bmatrix is a little bit bugged and I don't know why... This is the sourcecode: \begin{equation} \begin{bmatrix} \mathbf{d}_x \\ \mathbf{d}_y \\ \mathbf{d}_z \\ ...
5
votes
2answers
802 views

Vertical dashed line of a custom height

I need a vertically dashed line in my matrix, but my current solution looks like the dashes are going out of the array environment (and they are - i checked in photoshop). Can I manually shorten it by ...
2
votes
1answer
208 views

How can I \Aboxed a Matrix?

I am trying to use \Aboxed around a function containing a pmatrix, but anything other than a column vector seems to break \Aboxed. I think it has something to do with the &'s in the matrix, but I ...
12
votes
2answers
2k views

vertical dotted line in column vector / amsmath matrix

I would like to typeset the following set of equations: ... but with contiguous, vertical dotted lines in the column vectors, such that the top and bottom rows of the matrix and of the vectors are ...
5
votes
1answer
251 views

pmatrix and superscript

I would like to place a superscript to a pmatrix, but the superscript is not correctly positioned. \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix}^{T} Any ...
7
votes
2answers
329 views

How to improve the looks of a table?

I want to display measurement outcomes in a table that lets the viewer read off the measurement value of N and $\Theta$. The picture below shows my first attempt. While this is ok, I would like to ...
2
votes
1answer
290 views

Underline multicolumns in tikz matrix

In a TikZ matrix, how can I underline multicolumns automatically as follows (esp. when height of one header cell is larger than others): MWE from this question: \documentclass{standalone} ...
36
votes
5answers
2k views

Perform matrix operations (addition, product, transpose, etc.) in LaTeX?

I know the calc package can perform infix-notation arithmetic in LaTeX... but I want more! I'd like to perform (not necessarily infix-notation) linear-algebra operations such as scalar ...
17
votes
1answer
591 views

Brackets around matrices in TikZ

I'm writing a custom package for labeled matrices using TikZ. I noticed an inconsistency in TikZ. This is best illustrated with the following MWE: \documentclass{standalone} \usepackage{tikz} ...
6
votes
1answer
1k views

Horizontal alignment of text nodes of varying length in Tikz matrix like in Tex tabular

In tablular, we use {r|c|l} to define alignment. Is there anything similar for Tikz matrix. For example, by using matrix, the following MWE produces matrix of nodes, which appear to be center aligned ...
4
votes
0answers
295 views

Formatting of matrices [closed]

I have a document full of matrices, and many of them don't look very good, right now. Hunting for solutions, I found this post from two years ago. I have the same problems mentioned there, and I'd ...
1
vote
1answer
286 views

Small descriptions next to matrix [duplicate]

One of my textbooks notates Markov transition matrices this way with 1 and 2 denoting states: How can I reproduce this matrix in LaTeX?
6
votes
2answers
419 views

TikZ matrix decoration

What I'm trying to achieve is a code structure to draw this kind of diagram: I need to decorate a two-rows matrix grouping one or more columns with a square bracket above them, and then again with ...
4
votes
2answers
461 views

Adjusting the width of the matrix

I am typing a matrix in a document class but its size is too large to fit on the width the page. I have also used TeX code \tiny but it is making font of matrix entries too small. I am not able to ...
8
votes
2answers
412 views

smallmatrix with vertical line as column separator, how to do it

Since this \begin{smallmatrix}[cc|cc] ... \end{smallmatrix} is not possible with smallmatrix, I am wondering how can I get a vertical line as column separator in the smallmatrix environment? ...
5
votes
1answer
271 views

Highlighted Matrix with brackets

I would like to produce the matrix as shown in this figure: At the moment, I have this code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} ...