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

learn more… | top users | synonyms (1)

3
votes
2answers
152 views

Can't reproduce sequence alignment using TikZ?

I'm new using the TikZ package. Can someone help-me to reproduce this matrix 1 using Tikz? More precisely the step in figure 2. I tried to do it with matrix but I can't put the number 1 [above ...
2
votes
1answer
131 views

Shorter way to color indices of a matrix?

I've made a bordermatrix with brackets [] instead of (), now there are these indices on the top and left side. In my case on the top they are u_1,v_1,u_2,v_2 and so on. On the left side they are ...
1
vote
1answer
851 views

Align values in bmatrix

Is it possible to renew the bmatrix environment to have alignment? I would like the following vectors to show aligned: \begin{bmatrix} -0.505 & \\ -0.141 & \\ 0.144 & \\ 0.839 & ...
4
votes
1answer
359 views

Right curly bracket around text

The following code will produce some text enclosed by a right curly bracket and to the right of it some other text saying that is the same meaning. Now, I would like to have the text aligned to the ...
3
votes
1answer
255 views

easybmat matrices dotted lines

I use the easybmat package to typeset some block matrices as follows, where the rows are separated by dotted lines. For some reason, the dotted lines don't always come out right. For example the ...
7
votes
2answers
556 views

Update matrix entries in beamer

I'm trying to show row reducing a matrix in a beamer presentation. I'd like to show successive steps of the row reduction using overlays. The following is close to what I want to do. The problem is ...
5
votes
1answer
797 views

Tikzpicture and matrix

I want use tikzpicture for draw my matrix, U=[matrix], using this code \begin{align*} U&= \begin{tikzpicture}[decoration=brace] \matrix (m)[matrix of math nodes,left delimiter=[,right ...
3
votes
1answer
187 views

bmatrix - buggy? Alternating Color and not completely drawn

As you can see, my bmatrix is a little bit bugged and I don't know why... This is the sourcecode: \begin{equation} \begin{bmatrix} \mathbf{d}_x \\ \mathbf{d}_y \\ \mathbf{d}_z \\ ...
5
votes
2answers
1k views

Vertical dashed line of a custom height

I need a vertically dashed line in my matrix, but my current solution looks like the dashes are going out of the array environment (and they are - i checked in photoshop). Can I manually shorten it by ...
2
votes
1answer
263 views

How can I \Aboxed a Matrix?

I am trying to use \Aboxed around a function containing a pmatrix, but anything other than a column vector seems to break \Aboxed. I think it has something to do with the &'s in the matrix, but I ...
12
votes
2answers
2k views

vertical dotted line in column vector / amsmath matrix

I would like to typeset the following set of equations: ... but with contiguous, vertical dotted lines in the column vectors, such that the top and bottom rows of the matrix and of the vectors are ...
5
votes
1answer
319 views

pmatrix and superscript

I would like to place a superscript to a pmatrix, but the superscript is not correctly positioned. \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix}^{T} Any ...
7
votes
2answers
350 views

How to improve the looks of a table?

I want to display measurement outcomes in a table that lets the viewer read off the measurement value of N and $\Theta$. The picture below shows my first attempt. While this is ok, I would like to ...
2
votes
1answer
303 views

Underline multicolumns in tikz matrix

In a TikZ matrix, how can I underline multicolumns automatically as follows (esp. when height of one header cell is larger than others): MWE from this question: \documentclass{standalone} ...
37
votes
5answers
2k views

Perform matrix operations (addition, product, transpose, etc.) in LaTeX?

I know the calc package can perform infix-notation arithmetic in LaTeX... but I want more! I'd like to perform (not necessarily infix-notation) linear-algebra operations such as scalar ...
17
votes
1answer
657 views

Brackets around matrices in TikZ

I'm writing a custom package for labeled matrices using TikZ. I noticed an inconsistency in TikZ. This is best illustrated with the following MWE: \documentclass{standalone} \usepackage{tikz} ...
6
votes
1answer
1k views

Horizontal alignment of text nodes of varying length in Tikz matrix like in Tex tabular

In tablular, we use {r|c|l} to define alignment. Is there anything similar for Tikz matrix. For example, by using matrix, the following MWE produces matrix of nodes, which appear to be center aligned ...
4
votes
0answers
328 views

Formatting of matrices [closed]

I have a document full of matrices, and many of them don't look very good, right now. Hunting for solutions, I found this post from two years ago. I have the same problems mentioned there, and I'd ...
1
vote
1answer
312 views

Small descriptions next to matrix [duplicate]

One of my textbooks notates Markov transition matrices this way with 1 and 2 denoting states: How can I reproduce this matrix in LaTeX?
6
votes
2answers
456 views

TikZ matrix decoration

What I'm trying to achieve is a code structure to draw this kind of diagram: I need to decorate a two-rows matrix grouping one or more columns with a square bracket above them, and then again with ...
4
votes
2answers
526 views

Adjusting the width of the matrix

I am typing a matrix in a document class but its size is too large to fit on the width the page. I have also used TeX code \tiny but it is making font of matrix entries too small. I am not able to ...
8
votes
2answers
476 views

smallmatrix with vertical line as column separator, how to do it

Since this \begin{smallmatrix}[cc|cc] ... \end{smallmatrix} is not possible with smallmatrix, I am wondering how can I get a vertical line as column separator in the smallmatrix environment? ...
5
votes
1answer
296 views

Highlighted Matrix with brackets

I would like to produce the matrix as shown in this figure: At the moment, I have this code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} ...
2
votes
3answers
247 views

How to define the proper space between elements of a matrix?

I need to draw a simple matrix, with column corresponding to some sets. I tried the following: \[D^{4}_{2}= \left[\begin{array}{cc} \diagdown & {\begin{array}{cccccc} \{1,2\} & ...
7
votes
1answer
248 views

Diagonal text in diagonal matrix

I have a tridiagonal matrix whose diagonals d_{-1}, d_0, d_1 (thought as vectors) can be written as vector expressions. Is there a way to nicely represent this, e.g. via a matrix which is blank ...
5
votes
1answer
498 views

How to make a full equation with tikz?

I am using this solution here to make long dashes within a matrix, and it is working well. The code is: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} % possible to customize here ...
7
votes
1answer
1k views

Add Overbrace to describe a column of matrix

I want to add some over-braces to a matrix to get the following output: However, this this what I managed to get: I don't know how to get the neuron 1 and neuron 2 headings...I was thinking of ...
1
vote
1answer
467 views

How to make this matrix in LaTeX? [duplicate]

Ok, so I am trying to find a way to make this matrix shown here, in LaTeX: I tried to search for this type, but I frankly do not know what one would call this, so I had to draw a picture shown here ...
9
votes
2answers
533 views

Boxed entries in matrices

I would like to create a formula or figure like this: I tried it simply with the pmatrix environment and the \boxed command, but the spacing looked horrible. I think it might be done with TikZ, but ...
5
votes
1answer
160 views

Trouble creating properly aligned matrix within a matrix

I'm trying to insert parentheses around a group of elements creating a matrix within a larger matrix. So far I have this: \begin{equation} \begin{bmatrix} \begin{matrix} 0 & 0 \\ 0 & \omega_0 ...
6
votes
2answers
400 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 ...
3
votes
1answer
979 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
373 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
2k 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
423 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 ...
4
votes
1answer
528 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( ...
1
vote
0answers
35 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
61 views

How to make a matrix like this? [duplicate]

can anyone help me to making a matrix with braces like this?
5
votes
1answer
3k 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: ...
3
votes
2answers
328 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
454 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
188 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
227 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
230 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
220 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 \\ ...
8
votes
1answer
276 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
458 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
593 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
149 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
25 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} ...