Questions tagged [matrices]
{matrices} is about matrices in {equations} and {diagrams}.
2,055 questions
3
votes
3
answers
189
views
Producing the sums outside of the 3x3 Magic Square
How can I align the column of sums outside of this 3x3 magic square? I've coursed through different variations of code, but I can't seem to get it correct. Kindly see the photo below. The 15s ...
4
votes
1
answer
208
views
LaTeX: Matrix in Matrix
I created a matrix by this code
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
A_{n+1}=
\begin{pmatrix}
a & \begin{tabular}{ccccc}
0 & 0 & \ldots & 0 &...
10
votes
4
answers
792
views
beautification of a block matrix
I am looking for suggestions on how to improve the visual presentation of a block matrix I created in LaTeX. I'm hoping to "beautify" it and make it easier to read. Here is the code:
\...
4
votes
1
answer
121
views
Why are entries in pmatrix not horizontally centered?
Based on Section 4.4 in the "Short Math Guide for LaTeX", I expect entries in pmatrix to be horizontally centered, but this is not what I see. Consider the following MWE:
\documentclass{...
0
votes
3
answers
76
views
A question about matrix [duplicate]
How can I add the numbers $k$ and $n-k$ as in the figure?
3
votes
1
answer
72
views
Empty matrix with a colored row or column
I am trying to typeset an empty matrix with a colored row or column. I know how to do it using tikz, but would rather not use it - if possible.
I made some attempts, but the colored row (rectangle) ...
0
votes
2
answers
77
views
custom halfdynamic list
I have problems creating a list first, but adding entries on the fly later.
I need the List (actualy more a numbered table/matrix/) in the first pages of my rather long document, and want to add the ...
4
votes
5
answers
293
views
Tabularx & Amsmath: How to scale matrices with different dimensions inside a table so they are positioned one below the other perfectly?
This is my code:
\documentclass[preview]{standalone}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{amsmath, amsfonts, amssymb, amsthm}
\begin{document}
\begin{tabularx}{\linewidth}{XXX}
...
4
votes
4
answers
242
views
Boxed submatrix
I have to replicate a specific matrix, with its red boxing: I am going with pNiceMatrix and SubMatrix but in no way I can make the bottom rule to "box" my block. Is there any way, or am I ...
5
votes
3
answers
92
views
\Vbrace with one column matrix display incorrectly in the brace direction
I want to draw one column matrix with the nicematrix's \Vbrace, but brace direction is opposite, code is here.
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{...
1
vote
1
answer
73
views
Is there a way to automatically align the components in a large matrix without thousands of \hphantom? [duplicate]
For example, I want to create a simple matrix,
\begin{bmatrix} -1 & 1
\\ 1 & -1 \end{bmatrix}
But this looks a bit messy visually (especially for larger matrices), However, I ...
4
votes
2
answers
289
views
Partition matrix using bmatrix
Consider this example
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\left[
\begin{array}{ccc|ccc}
a & 0 & 0 & & & \\
0 &...
3
votes
1
answer
294
views
Square brackets around matrix is too big
I am working on my report in LaTeX and got stuck at the following equation:
\begin{equation}
A = \begin{bmatrix*} c_{0} \\ c_{1} \end{bmatrix*}
\label{eq:qubit_state}
\end{equation}
In this ...
3
votes
2
answers
169
views
A new column type that automatically detects minus sign and left lap it
For a very particular reason I need to create a new column type to use it in array environments that is capable of automatically detecting the minus sign - and replacing it with \mathllap{-}. In the ...
2
votes
2
answers
214
views
Block Structure for Matrix
I am trying to make the below pair of matrix equations and can do most of it, but not sure how to make the block matrix on the right-hand side, does anyone have any suggestions?
I have tried using ...