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

learn more… | top users | synonyms (1)

6
votes
2answers
517 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 \filldraw[fill=...
3
votes
1answer
2k 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 ...
3
votes
1answer
755 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 \...
5
votes
2answers
3k 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
741 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 ...
5
votes
1answer
1k 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( \begin{array}{...
1
vote
0answers
39 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} \...
1
vote
0answers
63 views

How to make a matrix like this? [duplicate]

can anyone help me to making a matrix with braces like this?
6
votes
1answer
7k 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: \documentclass{...
3
votes
2answers
784 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, ...
9
votes
2answers
784 views

Long Division with Boxes

I need to make a division worksheet for a specific student with ADHD. He often gets confused with the placement of the digits so this worksheet has to have boxes aligned in a very precise way. There ...
6
votes
1answer
457 views

How to model {smallmatrix} with {array}?

It is pretty normal, I guess, to use \begin{array} ... \end{array} to model matrices, when more control is required than you get with pmatrix, bmatrix, etc., with the proper \left and \right, and the ...
5
votes
1answer
458 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?
2
votes
0answers
310 views

Formatting big matrix and ratios using multi-row entries [closed]

It is possible to write the denominator or the numerator of a ratio, as well as the entries of a matrix, in multiple rows? This could be helpful in order to format long equations inside a document. ...
4
votes
2answers
492 views

aligning equations in smallmatrix environment

So for example, in the next code I get my equations in center aligment, I'd like to have them aligned to the left. $(a_{2})_{pq}=\left \{ \begin{smallmatrix} (a_{1})_{pq} ,p\neq i \\ (ca_{1})_{pj}+(...
9
votes
1answer
440 views

Replacing Leading Minus Signs in Environment

In this question concerning negative signs and the alignment of entries in matrix environments, Heiko Oberdiek gave a great answer in which he uses a user-defined command called \matminus instead of ...
8
votes
2answers
968 views

Equation with Large Matrix Dimension

I'm trying to code this matrix equation below, I'm not an expert in latex, but I've been successful dealing with other matrix equations. However with this one, I can't achieve it. The alignment of ...
9
votes
1answer
977 views

Heatmap of a triangular matrix (or a sparse matrix)

So let me first of all shamelessly steal heatmap code from this answer to Drawing heatmaps using TikZ \documentclass{standalone} \usepackage{colortbl} \usepackage{pgfplots} \usepackage{pgfplotstable} ...
6
votes
2answers
174 views

Matrix with only $a_{i1} \neq 0$ in first column

Assume that A is square. I would like to display this as follows (for i > 1): a_{i1} in its position, 0 ... 0 (transposed) on top and below this element, and a rectangle to the right of the first ...
0
votes
0answers
26 views

Weird pmatrix error [duplicate]

Possible Duplicate: How to create a matrix with 20 columns in latex I am trying to present a matrix with the following code: $$ B_{1}=\begin{pmatrix} 1&1&1&1&1&1&1&...
28
votes
1answer
13k views

How to create a matrix with 20 columns in latex

The code below works, but when I add 10 more columns, it does not. So, how can I add ten more columns to the matrix below? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{...
3
votes
2answers
7k views

A matrix inside a table [duplicate]

Possible Duplicate: Column padding in tables I am trying to insert a matrix inside a table, and I am looking for a good way to do this. Usually when I write matrices in equations, I use array ...
2
votes
2answers
1k views

Whitespace surrounding elements in a matrix

I was just wondering, when writing a matrix in the following way \begin{pmatrix} \begin{array}{cc} -5 & 3 \\ 6 & -4 \end{array} \end{pmatrix} I get quite a lot of ...
0
votes
0answers
43 views

The gaps in a matrix brackets [duplicate]

Possible Duplicate: Broken matrix - gaps in brackets I created a matrix in latex, but there are gaps in its brackets. Does anyone how to fix it? Here is the code: \documentclass{article} \...
6
votes
1answer
317 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} \\...
1
vote
0answers
63 views

Drawing a box around certain parts of a matrix [duplicate]

Possible Duplicate: Highlight elements in the matrix i have a matrix: \begin{equation} \begin{bmatrix} 1 & 5 & 4 & 2 & 1 \\ 1 & 5 & 4 & 2 & 1 \\ 1 ...
3
votes
3answers
3k views

Specify dimensions of block matrices in Latex

I recently started learning LaTeX and though I found answers for almost all of my questions by looking online (and especially here), there is still one more thing I would like to be able to do but can'...
9
votes
1answer
886 views

How can I pad cells of a blockarray?

After some struggle, I was able to render the matrix I was after. It now has the right "shape", but it does not look very nice; especially the spacing between the bracket and the matrix contents is ...
6
votes
2answers
390 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 \...
1
vote
2answers
301 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( \begin{array}{...
3
votes
1answer
499 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
1k 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
345 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} \newcommand{\pmat}[1]{\begin{pmatrix}#1\end{...
4
votes
2answers
654 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 ...
7
votes
2answers
2k 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 \end{...
10
votes
2answers
682 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: \begin{...
2
votes
1answer
246 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 & ...
8
votes
2answers
2k 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} \begin{...
7
votes
1answer
193 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 a ...
3
votes
2answers
413 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
289 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
452 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} ...
7
votes
3answers
2k 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 \\...
9
votes
3answers
6k 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
252 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 ...
11
votes
3answers
302 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 ...
7
votes
1answer
858 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
108 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
8
votes
1answer
689 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{ \begin{array}{...
1
vote
0answers
191 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 ...