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

learn more… | top users | synonyms (1)

11
votes
1answer
6k 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 ...
4
votes
1answer
887 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 ...
2
votes
1answer
924 views

From LaTeX to reST

While using reST (restructuredtext) to produce some mathematical documents I could not find documentation regarding multidimensional matrices. How do you create matrices in reST? Is there is a quick,...
6
votes
2answers
2k 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} x_{1}\\...
6
votes
2answers
2k 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 ...
6
votes
2answers
1k 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
663 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
506 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
4
votes
1answer
542 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 \...
6
votes
1answer
8k 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
1k 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 ) ...
6
votes
3answers
2k 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
900 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 ...
5
votes
2answers
3k 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 ...
7
votes
1answer
1k 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?
3
votes
1answer
987 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 tikz-two-...
18
votes
1answer
2k 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
331 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[ {\begin{array}{...
10
votes
2answers
1k views

TikZ marking several blocks in a matrix

I would like to mark a few blocks in a matrix and I followed directions from other similar questions but I get a weird TikZ behavior .. seems that I can not have more than one marked block in a matrix?...
2
votes
0answers
80 views

tikz matrix and beamer [duplicate]

Possible Duplicate: Unknown error using tikz matrix of nodes in beamer I would put the following figure in a beamer slide I tried with [ampersand replacement=\&] but it does not work \...
11
votes
3answers
657 views

How can I make LaTeX ignore height of underbrace?

I have created this matrix: With this LaTeX-Code: \documentclass{article} \usepackage[pdftex,active,tightpage]{preview} \setlength\PreviewBorder{2mm} \usepackage{amsmath,array} \renewcommand\...
4
votes
2answers
317 views

How to build macros for vector-matrix operators?

Can anybody build macros for doing the following vector operations? Or are there already such macros? For example, 1) Example data: \def\a{(5,3,0)} \def\b{(5,1,6)} \...
8
votes
2answers
2k views

Creating straight line in matrix

I need to add some straight lines inside a matrix to indicate labeling of rows, like this: How do I do that?
2
votes
1answer
496 views

How can I write a matrix using the whole page width in a two-colum document?

How can I write a big matrix (or array) in the width of the page while using two columns for all paper? I know that for figures (figure*) can be used, is there any way to do it for arrays?
4
votes
1answer
19k views

Problem putting matrix operations in an equation [duplicate]

Possible Duplicate: Errors in matrix equation? I'm trying to use official equation container for the first time, and it's giving me some trouble. I have this equation of a simple matrix ...
5
votes
1answer
6k views

LaTeX doesn't recognize \end{array}

Following code ... \begin{align} \begin{array} 1 & 2 & 3\\ 1 & 2 & 3 \end{array} \end{align}... results in numerous errors: - Argument of \array has an extra } (line 0) - ...
8
votes
2answers
402 views

Align the length of two nodes inside a matrix

I wanted to create a node with vertical and horizontal parts. So after some searching I found that I can achieve this by using a matrix. I tried the code below: \documentclass{article} \usepackage{...
2
votes
2answers
2k views

Writing big block matrix in double column using IEEEtran class

I'm writing a paper in IEEE journal format. I have a BIG matrix as follows: \begin{align} \begin{bmatrix} \begin{pmatrix} E^\top KA &0 \\ 0 &V^\top E^\top U \hat{K} U^\top AV \end{pmatrix} + \...
3
votes
1answer
2k views

How to resize a matrix?

I want to see How to reduce the size of a matrix ? I have this code: \begin{center} \[ \begin{blockarray}{cccccc} {\{1\}\{2\}\{3\}} & {\{1,2\}...
4
votes
2answers
450 views

Banded matrix with random entries

What is the optimal way to get banded matrices with random entries in LaTeX? By random, I mean the following: It should give me different entries after every compilation.
1
vote
1answer
124 views

Compiling errors in a matrix that correctly show up?

I have a little problem with nested arrays. The following examples give the correct matrix after a Latex=>PDF run but generate LaTeX errors ! missing $ inserted. <inserted text>, that I would ...
15
votes
1answer
7k views

matrix in a matrix

I would like to draw a matrix with top left, top right, bottom left and bottom right blocks. The top left should be a 3x3 matrix with numerical entries, the top right is 0, the bottom left is 0 and ...
9
votes
1answer
6k views

centering figure

I want to put this figure (Matrix) at the center but I can't, even though the title is centered: How to do this please? I have this code : \begin{center} \begin{figure}[H] \begin{center} ...
11
votes
2answers
844 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 & ...
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} \...
4
votes
3answers
723 views

How can I create a matrix normal form?

Is it possible to create a matrix like the following draft with LaTeX? I have found this Tikzample, but I don't know how to get the dots on the diagonal. edit: This is how far I got: $$ \begin{...
10
votes
2answers
1k views

Tikz foreach inside matrix

Apparently this question has been asked a hundred times already. But I couldn't get it to work with any of the answers provided. I want to have nested for loops inside a Tikz matrix. Something like: ...
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} \\ ...
25
votes
2answers
14k views

Label rows of a matrix by characters

How to add label to index the rows and columns of the matrix ? because I want to number the line outside the matrix \[ \begin{array}{lc} \ Mat_{\varPhi to M} & \left(\begin{array}{@...
8
votes
2answers
7k views

Horizontal line representing row vector in matrix

I would like to produce a graphical representation of a matrix as stack of row vectors. Because I will be publishing the math on a website, I have access to the amsmath package but no others. I find ...
10
votes
2answers
11k views

Matrix in small size

Does anyone have a good idea for an alternative matrix definition with a font size between the standard size used for say pmatrix and the \scriptstyle size used by smallmatrix? I have several vectors ...
2
votes
1answer
2k views

Produce matrix with labels underneath

Sorry if this has been asked before, I am trying to produce a matrix that appears as in the linked image. In particular, I am wondering how to get the labels on the top and bottom of the matrices, as ...
7
votes
4answers
896 views

What is the best way to indicate repeated off diagonal elements in a matrix/array?

I'd like to typeset a matrix of the following kind: When the symbols involved are big, like, in place of $r$, suppose we had $\mu(k-1)$ and in place of $\lambda$, we had $\mu(k-2)$, the matrix B below ...
7
votes
1answer
642 views

Linking the columns widths of two tikz matrices

I have two figures containing a tikzfigure with a matrix. Both matrices are related, i.e. have the same columns, and I would like tikz to assign them the same column widths, just as if I had all rows ...
11
votes
2answers
27k views

Misplaced alignment tab character when building a matrix

I'm still new to latex. I've been having a problem with building a matrix and I have no idea what I'm doing (or what I'm doing wrong), so be gentle please :) \begin{matrix} 5 & 6 & 7 \\ 4 &...
7
votes
3answers
2k views

Plot a matrix of real values with TikZ/PGF like imshow in matlab

How can I plot a matrix of real values with TikZ/PGF such that it looks like plotted with imshow in MATLAB? \addplot3 does something similar, but I'd like to have that in a color-coded 2D plot.
11
votes
3answers
1k views

Column sums in matrix array

I am trying to get my equation to look like the following: I cannot seem to get anywhere close (is there a way to get labels in \bordermatrix to go at the bottom?). Here is my code so far (without ...
4
votes
1answer
2k views

Maxima exported file in LaTeX

I exported this document from Maxima. \documentclass{article} %% Created with wxMaxima 12.01.0 \setlength{\parskip}{\medskipamount} \setlength{\parindent}{0pt} \usepackage[utf8]{inputenc} \...
11
votes
2answers
537 views

Programmatically setting column style of a matrix in TikZ

I'm trying to programmatically set the style of the columns of a TikZ matrix. My attempt is the following: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{...
7
votes
1answer
6k views

How to print a LaTeX matrix using xtable in R

I'm trying to get R to print a matrix as a LaTeX matrix using xtable, using the LaTeX environment bmatrix. a <- matrix(rnorm(25), 5 ,5) x <- xtable(x) > print(x, floating=FALSE, tabular....