{matrices} is about matrices in {equations} and {diagrams}.
1
vote
1answer
24 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
40 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 ...
0
votes
0answers
54 views
A new command to build arbitrary matrices
Can anybody help me to build a short new command to build any matrix with arbitrary size?
3
votes
1answer
54 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
69 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 ...
3
votes
1answer
71 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 \\
...
0
votes
0answers
85 views
Metacode: (C++)-generated LaTeX code for Gramian matrix (A question about “related software and tools”) [closed]
I'm trying to make some code for the matrix seen here.
I'm specifically looking for C++ code that can generate an array like above using setw(). A non-member function that takes the arguments i and j ...
4
votes
1answer
78 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 ...
5
votes
2answers
53 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 ...
20
votes
4answers
5k views
What's the best way make an “augmented” coefficient matrix?
When studying systems of linear equations, it's nice to remind people that the last column of the coefficient matrix holds the constants. This is often done in books by putting a vertical line ...
2
votes
1answer
50 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
111 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
43 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
252 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
122 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}
...
17
votes
1answer
203 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}
...
27
votes
4answers
769 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 ...
4
votes
0answers
139 views
Formatting of matrices
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 ...
4
votes
1answer
74 views
Trouble creating properly aligned matrix within a matrix
I'm trying to insert parentheses around a group of elements creating a matrix within a larger matrix. So far I have this:
\begin{equation}
\begin{bmatrix}
\begin{matrix}
0 & 0 \\
0 & \omega_0 ...
3
votes
1answer
131 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 ...
18
votes
4answers
2k views
Using display style fraction in a matrix environment
I'd like use the \dfrac command in a bmatrix environment as follows:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\begin{bmatrix}
\dfrac{\partial f}{\partial x}
\\
...
13
votes
4answers
548 views
Drawing Young tabloids
I would like LaTeX to produce output like the following
(without the 2 a so called Young tabloid), ideally by writing
\ytabloidshort{123,56}
(using one character per cell, ideally allowing ...
1
vote
1answer
67 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
186 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 ...
37
votes
8answers
5k views
Highlight elements in the matrix
I have a matrix and need to highlight some elements in the matrix. I have found how to highlight a single element (I want to put the cell in the square):
$$ A = \begin{bmatrix}
\fbox{0} & ...
4
votes
2answers
105 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 ...
0
votes
0answers
71 views
I need help writing a complicated Matrix which can be encrypted as well as decrypted [closed]
I need help writing a complicated Matrix which can be encrypted as well as decrypted.
I'd prefer it to be using transpose, multiplication, conjugate transpose (if possible), Determinant and anything ...
7
votes
2answers
104 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? ...
4
votes
1answer
82 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}
...
2
votes
3answers
92 views
How to define the proper space between elements of a matrix?
I need to draw a simple matrix, with column corresponding to some sets. I tried the following:
\[D^{4}_{2}=
\left[\begin{array}{cc}
\diagdown & {\begin{array}{cccccc} \{1,2\} & ...
16
votes
3answers
2k views
Multirow/multicolumn cells in TikZ matrices?
Is it possible to make TikZ matrix cells span multiple rows/columns, like they can in LaTeX tables using \multirow/\multicolumn? Specifically, I'd like to typeset something like the following in a ...
3
votes
1answer
93 views
Diagonal text in diagonal matrix
I have a tridiagonal matrix whose diagonals d_{-1}, d_0, d_1 (thought as vectors) can be written as vector expressions.
Is there a way to nicely represent this, e.g. via a matrix which is blank ...
4
votes
1answer
149 views
How to make a full equation with tikz?
I am using this solution here to make long dashes within a matrix, and it is working well. The code is:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix}
% possible to customize here ...
2
votes
1answer
135 views
How to make this matrix in LaTeX? [duplicate]
Ok, so I am trying to find a way to make this matrix shown here, in LaTeX:
I tried to search for this type, but I frankly do not know what one would call this, so I had to draw a picture shown here ...
7
votes
1answer
159 views
Add Overbrace to describe a column of matrix
I want to add some over-braces to a matrix to get the following output:
However, this this what I managed to get:
I don't know how to get the neuron 1 and neuron 2 headings...I was thinking of ...
8
votes
2answers
92 views
Boxed entries in matrices
I would like to create a formula or figure like this:
I tried it simply with the pmatrix environment and the \boxed command, but the spacing looked horrible. I think it might be done with TikZ, but ...
6
votes
2answers
207 views
Controlling Matrix like a shape in Tikz
Would it be possible to control a matrix in Tikz as accurately as possible as with regular shapes?
For example, inside a Tikzpicture, I could simply control a shape's size by writing
...
3
votes
1answer
115 views
LyX: Configure a command for 3x3 determinant
I've been trying to add a new command to LyX to easen my way through physics, when mostly 3x3 determinants are used.
I clicked Document -> Settings -> Preamble and wrote the following:
% det 3x3
...
3
votes
1answer
178 views
Make matrix inside equation fit the page width in LyX
I have a matrix that is a bit too wide to fit inside my page width.
After reading a lot of different answers on the Internet, none really related to LyX, I came up with these three different ...
5
votes
2answers
256 views
Underbraces in Matrix Divided in Blocks
How to put underbraces, inside the parenthesis of a matrix, to name both sides of the blocks?
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath}
\usepackage{array}
\begin{document}
.
.
.
\[
...
4
votes
1answer
104 views
Issue with delimiters of small matrix
I am using the mathtools package in order to right-align entries in small matrices. My code is below. The issue is that the delimiters in the first matrix are not the appropriate size; they should be ...
4
votes
1answer
179 views
Using simple, MathJax-compatible TeX to put enclose a matrix in braces
I was trying to explain the identity matrix over at Math StackExchange and I wound up using the following.
$${\bf I_n} = \underbrace{
\left.\left(
...
4
votes
1answer
115 views
Highlight elements in the matrix (continued)
Using @Stefan Kottwitz's solution of Highlight elements in the matrix, is it possible to
select one single entry in the matrix? Where does one need to place the left and the right marks?
1
vote
0answers
33 views
Referencing nodes in matrix of nodes does not work in beamer [duplicate]
When using node coordinates in a matrix of nodes in the article document class, the following code works well and soes exactly what it is supopsed to:
\documentclass{article}
\usepackage{tikz}
...
38
votes
5answers
48k views
9
votes
3answers
608 views
How to highlight a single element in a matrix?
I am trying to write out the LU decomposition of a matrix A. I am able to highlight the pivot column with elements below the pivot element except when I get to the last column. Does anyone know how I ...
0
votes
0answers
43 views
How to make a matrix like this? [duplicate]
can anyone help me to making a matrix with braces like this?
6
votes
1answer
115 views
Breaking equation in align enviroment to put textwidth matrix in separate line
I have to put a textwidth pmatrix into an align environment. When using split, it destroys the centered alignment of the other equation.
Pseudocode:
\begin{align}
\vec{a} &= \vec{b} + \vec{c} ...
4
votes
1answer
555 views
Compact block matrix
I'm trying to create a block matrix and surely there are hundreds of question about those already. But most of what I read so far, seems quite hackish in the end. What I have is:
...
3
votes
2answers
200 views
LaTeX Capabilities: Complicated and Important Equations
As I am introducing LaTeX to an audience, I'd like to show how it can render equations beautifully. As such, I'd like one equation (math/physics) that combines many different formatting requirements, ...





