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

learn more… | top users | synonyms (1)

1
vote
0answers
110 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
60 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
70 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
241 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
121 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
63 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
77 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
39 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
122 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
80 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
247 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
82 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
557 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
44 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
150 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
95 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
57 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
90 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
188 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
98 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
68 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
113 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
146 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
316 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
392 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
2answers
111 views

questions about matrix

I want to create a simple matrix and the code is give 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
222 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
161 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
104 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
53 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
162 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
111 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
76 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
116 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
109 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
319 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
1k 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
273 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
239 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
153 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
92 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
219 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
84 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
132 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
115 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
810 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
148 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
177 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 ...