{matrices} is about matrices in {equations} and {diagrams}.
6
votes
2answers
102 views
Centering \vdots in a sparse matrix with an even number of rows
I am trying to define only the non-zeros elements in a sparse matrix, thus using some \vdots where the entries are zeros and specifying the row when needed (using the blockarray command, with ...
0
votes
0answers
84 views
Converting R input into tex [closed]
During my work with R on Markov chains, I have to handle big matrices, which I want to transfer into LaTeX documents. Is there an easy method to do that without changing every single "," in my R-code ...
1
vote
2answers
120 views
Change matrix figure layout
I have a figure where I am writing som matrices I want something like
but I am getting this, How to change it?
I have
\begin {figure}[h]
\centering
\small
\textbf{X}
\[\left( ...
3
votes
1answer
137 views
Multiply matrix and letter
I want to multiply a matrix with a letter, it looks like that:
\documentclass{report}
\usepackage{ngerman}
\usepackage{amsmath}
\begin{document}
\[ \left( \begin{array}{ccc}
| & & | \\
...
5
votes
2answers
104 views
Rotation of a bmatrix
I'm writing a report, with a restriction on page numbers. So I want to rotate a bmatrix that sticks out of the page (horizontal) and put it inside a \minipage.
My bmatrix:
\begin{equation}
...
7
votes
2answers
143 views
Passing an argument with the alignment operator (&) to a macro within another aligned environment
I am trying to write macros for quickly formatting matrices in math mode. Here is a simple, working example:
\documentclass{article}
\usepackage{amsmath}
...
4
votes
2answers
323 views
Block matrices, separator with space
I want to write block matrices like the one shown below
I tried underlining, fraction, and using __ as an entry by making three rows but they did not look nice.I want the horizontal lines inside ...
3
votes
2answers
131 views
Caption on side by side matrices
I have two matrices side by side, like this:
\[
\left[\begin{array}{cc}
a & b \\
c & d
\end{array}\right] \qquad
\left[\begin{array}{cc}
e & f \\
g & h
...
9
votes
2answers
182 views
Why is picture and matrix not drawn at the same height
I'm trying to put a adjacency matrix beneath a graph using subfloat. The graph is drawn with tikz. No matter what I do, the matrix is put below the graph as shown here:
The code is here:
...
1
vote
1answer
143 views
Latex matrix not displaying right numbers
I've just started writing in latex to expose math problems to a forum.
I am trying to display a matrix:
\[
\begin{align*}
\begin{matrix}
1 & -9 & 3 \\
1 & 2 & -2 \\
-2 & ...
7
votes
2answers
228 views
Position two stacked tikz matrices
I would like to take two TikZ matrix, possibly of different dimensions and stack them. My demo code:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix}
\begin{document}
...
7
votes
1answer
84 views
TikZ compiles in body, but not as command [duplicate]
Possible Duplicate:
Problem with defining shortcuts for TikZ matrices.
When I use the code below to draw a tikzpicture in the body of my document, it works just fine. However, when I define ...
3
votes
2answers
131 views
Multiple horizontal line separators? Multiple \over-s?
How to code the syntax like fraction, but with more than 2 components? Fractions consist of numerator and denominator while I need more. In other words: how to code column-matrix with horizontal lines ...
5
votes
1answer
160 views
Plot weighted frequency matrix
I wish to create this plot preferably in pgfplots or tikz.
I have actually got a version plotted (with help from SO), but I have used R and exported the plot using tikzDevice. I can't post the ...
6
votes
2answers
142 views
Set Braces in XYPic, XYMatrix
I want to add three braces to a xymatrix in a xypic environment. Here's how I got so far.
\documentclass[11pt]{article} % use larger type; default would be 10pt
\usepackage[all]{xy}
\begin{document}
...
6
votes
3answers
322 views
alignat makes 3 good alignments and 1 bad
I'm having a problem with the alignat environment. This code:
\begin{alignat*}{9}
&X_{12}&+X_{13}& & & & & & & &=1 ...
6
votes
1answer
438 views
Matrix notation in ClassicThesis
In Classic Thesis Style Guide, the author suggests to not use bold fonts.
For vectors an alternative is arrow \vec. If I don't want to use \mathbold, what is the best alternative to mark matrix in ...
3
votes
1answer
108 views
labeling diagrams with matrices
I it possible to label an arrow with a matrix in Xy-pic? In the following diagram I want to label the arrows with 2x2 matrices to represent linear maps between vector spaces, in the place of a,b and ...
9
votes
3answers
176 views
Matrix from graph description
Are there any LaTeX package that draws/plots/generates a matrix from a "graph" description (node relations). Any type of description/language could be useful. The trick is to generate automaticly a ...
5
votes
1answer
270 views
How to label arrows in tikz-cd diagrams with matrices?
I'm using tikz-cd for some commutative diagrams, but if I try to label an arrow with a matrix, & appears to be "undefined control sequence". So all the entries in a row get concatenated, and it ...
1
vote
0answers
97 views
How to use Line in Matrix [duplicate]
Possible Duplicate:
\bordermatrix with brackets [ ] instead of parentheses ( )
I need to write a complicated matrix, that has a structure as in the attached picture
7
votes
1answer
175 views
bracket covering only a part of a matrix
How can I write a matrix, with brackets that cover only rows/columns in a certain range, but still has the right indentation? What I would like:
My current solution:
\[
\overset{
...
1
vote
0answers
115 views
Matrix with arrow - problem [closed]
I am using the following code from this question:
Highlight elements in the matrix
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fit}
\tikzset{%
highlight/.style={rectangle,rounded ...
4
votes
3answers
335 views
Is it possible to draw an n by n grid with text in each cell, with a different background shade/colour in each? (confusion matrix)
I am making a confusion matrix for a document, and I was wondering if LaTeX has the capabilities to handle this. It is essentially a table, but with background shading corresponding to the value in ...
5
votes
1answer
295 views
vertical lines in matrix using tikz package
my problem is interconnected to my two previous posts (here and here) and i've tried to incorporate answers into solution but without success.
My task is this matrix multiplication with added ...
6
votes
2answers
113 views
nodes in matrix and its incorporation into document
i continue with my previous post (here) concerning various additions to matrix. I have following problem: how to add nodes into matrix and this whole matrix incorporate into the document ?
My task is ...
6
votes
1answer
219 views
Adding nodes and horizontal lines for pmatrix
Yesterday, I posted question concerning solid diagonal line within matrix. But my problem continues, since I am supposed to add into the matrix even the vertical line and labels. Is there a way how to ...
18
votes
3answers
465 views
Matrix with labels nested in braces
What's the best way to produce a matrix with labels that are nested in braces, like this:
5
votes
1answer
513 views
diagonal line within matrix
I've got simple task - draw block of matrices, when one of the matrices contains diagonal and vertical lines. I am able to make diagonal dotted lines but so far i have not succeeded with solid line. ...
10
votes
6answers
567 views
Labelling Ax = b under an actual Matrix
I wish to achieve the following in Latex:
| a b | x | x1 | = | b1 |
| c d | | x2 | | b2 |
A x b
Where I write the labels A, x, and b under the respective matrices. The code I'm ...
4
votes
3answers
326 views
Writing a formula below a matrix
I have a matrix environment:
\begin{bmatrix}
...
\end{bmatrix}
How can I write below that matrix?
I tried with substack, so I wrote \end{bmatrix}_{\substack{...}}
That doesn't work as it does ...
8
votes
1answer
717 views
Negative Sign and Matrix Alignment
I am having trouble centering the elements of a matrix such that the negative sign is not taken into account during alignment. Additionally, I would also like the space between the left parenthesis ...
2
votes
1answer
331 views
Alignment of nodes and scopes in tikz matrix?
I am trying to fix the positions of the arrows of the following diagram without much success. I would like the arrows to be centered (both horizontally and vertically) in the matrix cell no matter ...
6
votes
2answers
269 views
Vertically align the tops of matrices in an equation
The following matrix equation looks great:
\begin{align*}
\overset{A}{\left[\begin{matrix}t_{1}&1\\
\vdots&\vdots\\
t_{n}&1
\end{matrix}\right]}
\overset{x}{\left[\begin{matrix}
...
5
votes
3answers
373 views
Side by Side matrices
How can I get matrices that are side by side? Currently I have the following:
\[
\begin{pmatrix}[ccc|c]
1&2&0&0\\
-1&1&2&0\\
1&0&1&5\\
0&-2&1&4
...
5
votes
2answers
551 views
Big block matrix with tikz
I know this is very similar to plenty of questions.
The matrix below s actually bigger, so I realized that I had to use tikz.
In this array, A, A',…,L', T are square matrices, and I filled with
...
4
votes
2answers
233 views
How to modify a node in TikZ when using beamer's overlays
I have a matrix initialized with some colors and no values. With the help of beamer's overlays I wanted to modify the matrix in the next step, changing some of the colors and inserting some values. I ...
6
votes
2answers
153 views
How to justify an element in matrix
I have a formula in LaTeX attached below. But I could not justify the position of $+\infty$ symbol. I want it appear just after the $\{$ and aligns to the left of the second term.
The LaTeX Code:
...
1
vote
1answer
163 views
a line through a column in MathML [closed]
I have a problem with MathML.
How can I draw a line through a column (row and column at the same time) in a matrix?
An example in TEX:
Draw a line through one column of a matrix
0
votes
0answers
190 views
best latex symbol to represent submatrix? [closed]
Suppose I have a matrix called K and a set of column indexes identified by I. Now I would like to refer in my formulas to the submatrix defined as the columns of K listed in I i.e., exactly like in ...
4
votes
1answer
178 views
Row spacing in kbordermatrix
I want to create a matrix with row and column lables (outide matrix delimiters). After a lot of googling, I have found that TeX macro kbordermatrix is best suited for this purpose. Here is my code
...
2
votes
1answer
381 views
multicolumn in array environment
I want to create a matrix like the following in a math environment
but i keep getting compile errors.
\begin{array}{c c c c}
\multicolumn{3}{c}{R} & P \\
0 & 0 & 0 & 1
\end{array}
4
votes
1answer
282 views
`pmatrix` line break
I wrote a matrix using the pmatrix environment.
The content is very long and LaTeX produces an output of the kind (the "a" line extending beyond \textwidth):
( aaa aaa aaa aaa aaa aaa + aaa aaa aaa )
...
4
votes
3answers
366 views
Typesetting sparse matrices with long entries
When typesetting a (square) matrix with arbitrary dimension but repeated entries (in particular null entries), I make use of the \cdots, \vdots and \ddots commands. When the entries of the matrix are ...
4
votes
2answers
139 views
How can I type an expression of a column vector
I want to type a column vector like below:
[ dx ]
UI = [ dy ]
[ dtheta ]
U is the name of this vector, and I is the subscript. Two brackets like the matrix style.
dx, dy and ...
6
votes
1answer
223 views
How to adjust the width of a \hdashline inside a pmatrix?
I'm using \hdashline from the arydshln package to draw a horizontal line inside a pmatrix:
How can I reduce the width of this line to prevent it from touching the outer parentheses?
4
votes
2answers
347 views
Typsetting big matrix (but keeping A4 size)
This question is a slight variation of Compiling a BIG matrix, but I need to write a matrix in a A4 or letter size paper; it is a block 48x48 matrix but I can put lot of $0_2$ and $0_4$'s in order to ...
2
votes
1answer
316 views
TikZ change matrix cell color background
I have a TikZ code that generates this:
using something along the lines of the following snippet. The full code corresponding to this snippet can be obtained from the answer to question ...
13
votes
1answer
1k views
TikZ two-blocks matrix
I would like to get a plot like the one I sketched below, basically two blocks of the same matrix with arrows going up and anti-diagonally for the red block and arrows going up for the green one. The ...
2
votes
1answer
104 views
Matrix is not getting displayed completely in Latex
I am trying to display the matrix in latex document using below code.But the right side of the matrix is not getting displayed completely.Please check this.
\[
M=
\left[ ...