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

learn more… | top users | synonyms (1)

11
votes
2answers
813 views

How can I add clips above matrix?

\documentclass{mwrep} \usepackage{kbordermatrix} \usepackage{amsmath} \begin{document} \begin{equation} \bar{P}= \kbordermatrix{ \mathrm{state} & 1 & 2 & 4 & 3 & 6 & ...
5
votes
1answer
239 views

Centering item along several nodes in bmatrix

How can I position X exactly in the middle of space between a and d column? \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{bmatrix} a & b & c & d & e \\ ...
5
votes
2answers
2k views

breaking lines in a matrix/array environment

I have a matrix whose entries are quite long and must be broken up across multiple lines. The desired break-points are the + operators separating terms in each matrix element. The following code is ...
6
votes
1answer
1k views

How can I add some enhancement to the matrix [duplicate]

Possible Duplicate: Highlight elements in the matrix \documentclass[12pt,a4paper]{mwrep} \usepackage{amsmath} \usepackage[nodisplayskipstretch]{setspace} \setstretch{1.5} \begin{document} ...
19
votes
4answers
4k views

Draw a line through one column of a matrix

I'd like to "cancel" (draw a line through) a column of a matrix (using \begin{pmatrix}..\end{pmatrix}). How can I do this?
3
votes
1answer
255 views

How to align macros to correct order in TikZ matrix?

How to fix the broken placement of macros in matrix? \documentclass{article} \usepackage{tikz} \begin{document} \newcommand{\macroA}{ \begin{tikzpicture} \node[minimum height=1.5cm,minimum ...
2
votes
1answer
919 views

Adding text over matrix in LaTeX

I am trying to accomplish this in LaTeX. j ⎡a b c⎤ |d e f| ⎣h i j⎦ so that the "j" is aligned with the center of the matrix. It seems like I can't use the \begin{align} ...
3
votes
1answer
576 views

tabular as matrix

I have the attached figure and I need to have arrows from the entries of the table on the right-hand-side (one which says Dimensions List DL) to nodes of the tree. I think the best way to do this is ...
8
votes
1answer
7k views

Different arrow line styes and different row sizes in tikzpicture

I am using tikzpicture environment, together with \matrix command to draw a diagram. I have two questions: Can I use different arrow line styles in the same matrix? For instance, the matrix called ...
5
votes
1answer
5k views

How to create a matrix with rows and columns labeled (at the right side)?

I would like to create a matrix with rows and columns being labeled. I would like the matrix elements to be right aligned, the row labels being displayed to the right of the matrix, and the column ...
3
votes
1answer
963 views

Example of matrix node in trees in tikzpicture

I'm trying to recreate this image using tikz matrices in a tree. I can create the first node and can hook up to children, but I can't get the syntax for including more matrices as child nodes of ...
7
votes
1answer
429 views

Twist a single line matrix in TikZ

I have a single line matrix made with TikZ: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \node [matrix,fill=white!20,draw=blue] (my matrix) ...
8
votes
1answer
314 views

Make the `\ddots` looks well in a transformed matrix

I want to typeset a large matrix: \addtocounter{MaxMatrixCols}{8} \begin{pmatrix} 1\\ &\ddots\\ & &1\\ & & &0& & & &1& & ...
6
votes
1answer
3k views

Write elements above and right outside the matrix

I found writing matrix's code is a boring work. There is one, you can see in pic below. Can anybody help?
31
votes
3answers
28k views

How do I left-align entries in a matrix with \begin{matrix}?

I'd like to left align the -1 entry in the following matrix so that the 1s line up. Is there a way to get matrices to ignore signs in that way? \begin{matrix} 1 & 1 \ 1 & -1 \ ...
0
votes
1answer
305 views

Typing Block matrix between texts than in separated picture?

How can I type a block matrix for instances a square that divided on each side between lines in LaTeX? Namely between $...$?
5
votes
1answer
2k views

Tikz positioning in matrices

Due to the help of some posts on StackExchange (mostly [1] and [2]) I think that I got the gist of categorizing matrix rows and columns with braces and separating them with lines in TikZ. However, I ...
8
votes
2answers
901 views

Enforcing That \array Stays Square When Drawing Matrix

I'm trying to draw a block matrix in LaTeX, and this is what I have so far: \begin{array}{|c|c|} \hline I_{r \times r} & 0 \\ \hline 0 & 0 \\ \hline \end{array} Here's a ...
5
votes
1answer
830 views

tikz matrix : centering cells

I have what's below and I do not know why the term m_{n+1,k} is not horizontally centered in its cell? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} ...
14
votes
2answers
6k views

How to typeset a matrix with MathJax?

I need to typeset a matrix with square brackets as delimiters for math.se (I believe they use MathJaX). How would I do that?
4
votes
1answer
900 views

How to achieve double border line between some columns of tikz matrix?

I've read TikZ matrix as a replacement for tabular which nicely explained how to get table with borders in the first place. Now, I'd like to have let's say thicker border (or double border line) ...
8
votes
3answers
19k views

matrices too big to fit the width of a page

When I type matrices in beamer class, they are often too big to fit the width of a page. What is the way to make the matrices smaller? I also want to make the font of the entries of these matrices ...
12
votes
4answers
4k views

Text above matrices

I am new to latex and I am trying to create So far I have been able to create the matrices, like so: \[ N\textrm{ spectra} \begin{bmatrix} a_{11} & a_{12} & \cdots & a_{1M} \\ ...
8
votes
1answer
1k views

How to cross a row in matrix with a line?

Is there an "easy" way to cross the row in a matrix with a line? I am trying to demonstrate to my students how to type in LaTeX their homework assignment on Boolean function. The below table is used ...
5
votes
1answer
343 views

special symbol for matrix index l

In the following image there are two different styles used for matrix index l. The first one is the default one. How can one get the second one? The code is for the first equation is ...
3
votes
1answer
278 views

How to position “=” mid-line inside a '\raisebox' and then `align` using `&=` with expression below?

In order to get a full stop at the bottom, rather than mid-line, after an aligned matrix expression, I have raised the expression using a raisebox, and adjusted space using `vspace'. This is now ...
3
votes
2answers
408 views

How to put a full stop at the bottom, not mid-line, after an aligned matrix?

How can I put a full stop at the bottom rather than at mid-line following the end of an aligned matrix expression such as $\begin{pmatrix} x\\ y \end{pmatrix}$?
14
votes
2answers
3k views

TikZ: Curve through specified points

\documentclass{standalone} \usepackage{comment} \usepackage{tikz,pgf} \usetikzlibrary{fit,scopes,calc,matrix,positioning,decorations.pathmorphing} \begin{document} \begin{tikzpicture} ...
8
votes
2answers
3k views

Matrix with arrows and labels

I would like your advice on writing a matrix with latex. In order to explain the meaning of the rows and columns, the matrix should be surrounded by two arrows, one on the left side pointing downward ...
4
votes
1answer
700 views

TikZ: Tilting a submatrix of a \matrix

\documentclass{standalone} \usepackage{tikz,pgf} \usetikzlibrary{fit,scopes,arrows,calc,shapes.misc,matrix,positioning} \begin{document} \newcommand{\bbrect}[3]{ ...
19
votes
3answers
3k views

How can I visualize Matrix operations?

I would like to visualize some matrix operations like that: How can I do that (preferably something that also works for mathjax)?
8
votes
1answer
28k views

Matrix equation (esp. row vectors)

I'd like to write the matrix equation A = (x y) B (x y)^T, where (x y)^T is written as a column vector and B is a 2x2 matrix written as such. I can (almost) do this by, for example, the following: A ...
10
votes
1answer
2k views

Compiling a BIG matrix

I have a large matrix (say, 100x100) in LaTeX code and I want to view it in a human-readable form. Obviously compiling the TeX code (of the matrix and nothing else) is the best way (much better than ...
52
votes
9answers
18k 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} & ...
5
votes
2answers
10k views

Set horizontal width of matrix in amsmath [duplicate]

Possible Duplicate: Is there a way to slightly shrink a table, including font size, to fit within the column boundaries? I have a 16x16 pmatrix. How do i set the width so it doesn't ...
6
votes
3answers
973 views

Optional argument to an environment inside align

I have lots of matrices so I want to define a mat environment. I sometimes need the matrix to have right-aligned columns so I am using mathtools and I want to have an optional argument that is ...
16
votes
3answers
5k views

Typesetting a Row Vector

In the question typesetting a column vector, a very nice solution was given for typesetting a column vector with an arbitrary number of rows. I am attempting to modify the code to produce row vectors ...
17
votes
4answers
21k views

Diagonal dots spanning multiple lines/columns of a matrix

I'm filling in large sparse matrices, for example \begin{bmatrix} 0 & -2 & 1 & & -1 & 2 \\ 2 & \ddots & \ddots & \ddots & & -1 \\ ...
5
votes
2answers
3k views

Vertical Line in \bordermatrix [duplicate]

Possible Duplicate: bordermatrix with blocks I need to put a vertical line between two columns of a matrix in \bordermatrix. I know how to do it in the array environment, but \bordermatrix ...
15
votes
1answer
850 views

How does this macro for augmented matrices work?

I've used this code I found somewhere to typeset literally hundreds of augmented matrices, and it's been amazing: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{arydshln} ...
4
votes
2answers
942 views

How can I use monospaced font inside a matrix (or tabular etc)?

I would like to display a matrix with characters using monospaced font (as in \tt and \mathtt), but I haven't found an easy way to do it. Something like this: \begin{center}{\tt\left( ...
11
votes
2answers
3k views

Gaussian reduction of matrices

I have to show a Gaussian reduction in an assignment, and I was wondering what the more space-efficient and neatest way of expressing this is. I thought about using \begin{smallmatrix} (it's only a ...
7
votes
1answer
256 views

Using “found” code to typeset augmented matrices, want [] instead of ()

Here's a minimal example of what I'm doing presently: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{arydshln} \makeatletter \renewcommand*\env@matrix[1][*\c@MaxMatrixCols ...
10
votes
3answers
2k views

Look for a bigger delimiter than \Bigg

\documentclass{article} \usepackage{amsmath} \begin{document} \[\left. \begin{vmatrix} a_{11}&a_{12}&a_{13}\\ a_{21}&a_{22}&a_{23}\\ a_{31}&a_{32}&a_{33} ...
1
vote
2answers
298 views

Why am I getting a frame number of 2? [closed]

Using tikz/matrix inside beamer, I have several slides with a wrong page/frame count. Why is that so, and how can I avoid it? MWE: \documentclass[14pt]{beamer} \usepackage{tikz} ...
11
votes
1answer
24k views

How to represent the trace of a matrix [duplicate]

Possible Duplicate: Define additional math operators to be typeset in roman The trace of a matrix is often written as "Tr [matrix] ", but there does not seem to be a naive LaTeX symbol for ...
9
votes
2answers
4k views

How can I put a matrix in a figure caption?

I would like to put a matrix in a figure caption. The following example demonstrates the idea: \documentclass{amsart} \usepackage{graphics, epsfig, psfrag} \begin{document} \begin{figure} ...
12
votes
1answer
700 views

Enter matrices by columns rather than rows in TikZ

I find myself drawing a lot of quantum circuits these days, and I do them in TikZ because it produces very nice diagrams. A quantum circuit is a lot like staff (as in music). You go from left to ...
9
votes
2answers
30k views

Vertical line in matrix using LaTeXiT [duplicate]

Possible Duplicate: What's the best way make an “augmented” coefficient matrix? I am trying to make a vertical line in a matrix in LaTeXiT. I have read that it should be ...
13
votes
3answers
21k views

Vertical spacing between fractions in matrix environment [duplicate]

Possible Duplicate: How can I increase the line spacing in a matrix? Using display style fraction in a matrix environment How to add extra spaces between rows in tabular environment? ...