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

learn more… | top users | synonyms (1)

4
votes
1answer
198 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
134 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
66 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
183 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
145 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
91 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
177 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
158 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
338 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 ...
7
votes
3answers
2k 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
568 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
288 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
203 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
98 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
261 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
119 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
340 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
239 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
313 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
108 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
274 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
132 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
210 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
528 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
770 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
126 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
301 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
130 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
39 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
557 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
239 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
349 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
67 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
362 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
258 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
193 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^{*}) ...
4
votes
1answer
151 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
254 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
327 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
261 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
121 views

Table of Values

How can something like this be done in MacTex:
8
votes
3answers
481 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
110 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
134 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
75 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
318 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
205 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 ...