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

learn more… | top users | synonyms (1)

1
vote
4answers
32 views

Dividing line in a matrix

How can I Tex this equation? I try to have exactly the same result but for the moment I only succeeded in having intersecting lines... Thanks!
0
votes
1answer
21 views

Multiple equations in square bracket matrix [duplicate]

When solving many equations you usually stuff them in matrices and solve them using Gauss-Jordan elimination. Where I come from, we write it like this and this is what should appear in my document: ...
4
votes
2answers
57 views

Matrix in matrix: how to adjust vertical space?

Normally, I'm kind of a Latex guru and I find solutions to problems easily with sites like this, but now I encountered something I cannot find an appropriate solution for: I have matrices within a ...
7
votes
2answers
603 views

How can I make a big matrix look good?

I have to put big matrices into my thesis and I cannot find a way to do it in a beautiful way. The problem is: these matrices are really sparse but I need them complete for analysis purposes. So ...
1
vote
1answer
29 views

Extra alignment tab has been changed to \cr. <recently read> \endtemplate [duplicate]

I need to insert a 19x19 matrix in my article, but when I try this code: \begin{vmatrix} 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 ...
4
votes
1answer
46 views

Nested matrix with odd alignment

I'm trying to get my code to look like this. Any help would be appreciated. \documentclass[12pt,a4paper]{article} \usepackage{amsmath,adjustbox} \begin{document} \newenvironment{Pbmatrix}[1][c] ...
2
votes
1answer
29 views

put many matrices side by side via minipage

I am trying to align two matrices side by side. I am using minipage but its not working out. this is my code \begin{frame}{Addition and Subtraction} \begin{itemize} \item Addition and subtraction are ...
0
votes
0answers
19 views

Matrix with 11 columns, 1 row split in a matrix with 10 columns and 2 rows [duplicate]

I want to make a row matrix , with 11 columns (and a single row). I type the following: \begin{align} \hat{B} & = \begin{pmatrix} 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 ...
5
votes
1answer
26 views

Trouble with nested matrices

I have tried repeatedly to google for the solution to this problem. I have a matrix that looks like this. But I want it to look like this. Notice how the B, C, D and E are "very tightly centered" ...
2
votes
1answer
32 views

tabular inside tikz matrix

The matrix is not being layed out correctly. It should be a 2x3 matrix. What's wrong with the code? MWE: \documentclass{article} \usepackage[table]{xcolor} \usepackage{tikz} ...
3
votes
1answer
42 views

tikz: text in rectangular split inside matrix

I have a tikz matrix, some of those cells are of shape rectangle split, how do I set text in both parts of the rectangle split? Here is a MWE. I would like to have text in both parts of the ...
1
vote
1answer
53 views

add frame to matrix [duplicate]

I want to enclose my matrix by a box. I have followed the instructions in this link but couldnt get the borders correct. Here is how the frame looks like and the code. \begin{frame} ...
4
votes
3answers
61 views

How do I center an entry across columns in a pmatrix?

I have a matrix of the form: \documentclass[]{scrartcl} \usepackage{amssymb,amsmath,amsthm,amsfonts} \begin{document} \begin{equation} \begin{pmatrix} \boldsymbol{\Phi}_{l,t}^F \\ \mathbf{0} & ...
5
votes
2answers
130 views

Matrix inside matrix

How I can make a matrix inside a matrix as shown in this picture? Indeed, I want to treat every block as a separate matrix. For example, I want to add braces over and under the second matrix by ...
2
votes
1answer
50 views

Strikethrough rows and columns in matrices

I've found this code from How to cross a row in matrix with a line? \documentclass{article} \usepackage{tikz} \newcommand{\pmark}[1]{\begin{tikzpicture}[overlay,remember picture]\node(#1)at ...
3
votes
2answers
72 views

Removing the bracket from the first line of bmatrix

How can I write a matrix with a header line that is not bracketed? I have used the following code to produce the results below. In addition of being ugly, it is impractical when I need to align the ...
1
vote
0answers
35 views

How to construct block matrix with shadowed entries? [duplicate]

Is there a simple way of drawing matrices with shadowed blocks like the ones in the picture? I've tried something like Gonzalo Medina's proposal: %% with these packages loaded %% ...
3
votes
2answers
190 views

Coloring the diagonal of a matrix

I try to color the diagonal of a matrix. \begin{equation} C= \begin{bmatrix} 1 & 1 & 0\\ 0 & 1 & 1\\ 1 & 0 & 1\\ \end{bmatrix} \end{equation} All I ...
0
votes
3answers
76 views

How to write brackets in a matrix

I can't describe it, just i can't do it. Can you help me please. Note that there is an arrow showing the position "t".
1
vote
2answers
30 views

bmatrix, how to give details after particular row bracket[ ]?

I am new to LaTeX. I want matrix like in bmatrix [1 1 1] R1=R1-R2 (Row1= Row 1 - Row 2) 1 1 1 R2<-R1+R3 1 1 1 I want "R1=R1-R2" after the matrix [1 1 1] but when i add this its goes to ...
1
vote
1answer
57 views

How do I get this matrix?

How do I get the above matrix in LaTeX using Texmaker? P.S. I need the matrix as an equation. I couldn't get using the general specifications of LaTeX.
7
votes
3answers
100 views

Overfull hbox in matrix

I am typing up a technical report that contains many large matrices. I am looking for a way to print these matrices with an equation number next to them without getting an overfull \hbox error. I ...
5
votes
1answer
53 views

Illustrating a matrix assembly within the array enviroment

I'm having trouble aligning the parentheses of a matrix assembly (parentheses within the same matrix). Essentially, what I want to do is this (excuse the terrible paint-job): Where the submatrix ...
1
vote
1answer
25 views

How can I input matrix as the figure indicates

Please tell me how to input a matrix as drawn in the figure. Thanks for your help.
0
votes
1answer
51 views

How to place arrows horizontally and vertically beside matrix?

I would like to create a matrix with arrows next to it. Say, I created a 10x10 matrix in Latex. Then, I want to put one arrow parallel to the "x-axis" of the matrix and I want to label the arrow, e.g. ...
2
votes
1answer
48 views

Problems with matrix highlighting in two separate equations using hf-tikz

I have the following 2 matrix. If I do that: \documentclass{article} \usepackage{amsmath} \usepackage[usenames,dvipsnames]{xcolor} \newcommand\x{\times} % requires version 0.3 of the package ...
2
votes
2answers
34 views

tabular array error in the width

I would like to create a matrix with index (left and top position) and a sum columns and rows (bottom and rigth position). I have tried that : \documentclass{article} \usepackage{amsmath} ...
4
votes
1answer
102 views

Using Multirow in tables created with a TikZ matrix

I need to incorporate multirow in the following table, and I keep coming across errors. I found the following example for a great formatted table with colored cells and rounded corners here. I have ...
0
votes
1answer
27 views

Error with large matrix [duplicate]

I am trying to produce a very large matrix: \[ CM = \begin{bmatrix} 0& 0& 0& 1.0000& 0& 1.0000& 0& ...
3
votes
1answer
47 views

Create a block matrix with four quadrants

I want to create a block matrix of this form: But Block A should be a diagonal matrix with 1 on the diagonal, the other blocks should be B, C and D like in the picture. But the size of each block ...
4
votes
1answer
89 views

tikz matrix as legend does not work with trim axis

I am using the tikz-library matrix to create a legend for a plot with two y-axes. When I add "trim axis right" to the code the legend is stretched to the right. How can I prevent this? ...
3
votes
1answer
31 views

Missing } inserted when using \begin{matrix}

I created following equation with an online generator, however it doesn't work on texmaker. \begin{equation} p_{ij}=\left\{\begin{matrix} \frac{\tau_{ij}^{\alpha}}{a\sum _{l\in ...
5
votes
2answers
120 views

Descriptive text around a matrix

I am trying to write a matrix with a bit of text sidewards and above it in order to explain its meaning. At the moment, this is my code: \begin{equation} \begin{turn}{90} \mbox{\# rows} \end{turn} ...
2
votes
0answers
79 views

General matrices

I want to use LaTeX to add matrix that looks like this: -----L_1----- -----L_2----- . . . . . . . ----L_n----- and matrices where I want to show how a general cell in the matrix looks like (for ...
0
votes
0answers
24 views

alignment error? [duplicate]

$$\dot{\begin{pmatrix} x_1\\u_1\\y_1\\u_1\\z_1\\u_3\\x_2\\u_4\\y_2\\u_5\\z_2\\u_6 \end{pmatrix}}= \begin{pmatrix} 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 ...
6
votes
2answers
159 views

\cellcolor is taking too much space in a matrix

I would like to highlight a row, a column and a specific cell in a matrix. I ended up using \cellcolor. My problem is that \cellcolor is taking too much space, therefore the matrix borders are being ...
4
votes
2answers
178 views

TiKZ matrix of objects

I am drawing diagrams which consist of grids, some cells of which are filled with circles, like this: I created this picture with \begin{tikzpicture}[scale=0.6] \draw[shift={(0.5,0.5)}] (0,0) ...
2
votes
2answers
87 views

How to wrap text around a matrix?

In the middle of a paragraph (text is justified), I have a 5-row matrix. I've been trying to find a way to wrap the text in the paragraph around the matrix, so there aren't large gaps above and below ...
2
votes
1answer
37 views

alignment of rows in a bmatrix which are themselves bmatrices

in the code below I'd like the elements in each of the rows to be aligned with the corresponding elements in the other rows and the inside brackets in each row to be aligned with the corresponding ...
2
votes
1answer
56 views

Failure to produce nested matrix with shortcut macro

I use a \arr macro as a shortcut for bmatrix environments. In addition, I use a hacked version of bmatrix (see: What's the best way make an “augmented” coefficient matrix?) so that it's easier to ...
3
votes
1answer
98 views

Matrix with rows and columns labeled

It is trivial to make matrices like so: \begin {pmatrix} s & t & a \\ c & k & x \\ cha & n & ge \end {pmatrix} It is not so trivial to impose labels on the rows and columns ...
2
votes
1answer
55 views

Matrix equation align - letters and matrices

I am trying to align a matrix equation so that the alignment it with the top of the column matrix A (not the centre as it is at the moment). Any help would be appreciated. Here is what I have at the ...
4
votes
1answer
62 views

Getting block matrices to be the same size

I want to produce equations with block matrices \documentclass[a4paper,12pt,titlepage]{article} \usepackage[fleqn]{amsmath} \usepackage[pdftex]{graphicx} \usepackage{blkarray} \usepackage{mathtools} ...
3
votes
2answers
53 views

Alignment of labeled vector with other vectos

I would like create 3 line vectors that are directly aligned to each other. I would to label the first vector (here example A, B, C ...) However the alignment (and the size of the brackts does not ...
3
votes
1answer
44 views

Align problem in Bmatrix

My latex code is like: \begin{eqnarray*} \underset{a, b}{argmax}= & \begin{bmatrix*} t(a,b,c) u_1(a)+ t(a,b) u_1(a) & [c] \\ t(a,b,c u_1(a) & [d] \\ \end{bmatrix*} \end{eqnarray*}\\ ...
4
votes
2answers
84 views

Overruling global node style in matrix

I want to build a matrix of several nodes of different types. In my example there is a matrix containing two "modules" and one "label". For convenience I wanted to use matrix of nodes with ...
3
votes
3answers
64 views

Optimizing this cases-command for inline expresions

I'd like to optimize the following command \documentclass{standalone} \usepackage{amsmath} \newcommand{\casos}[2]{\left.\begin{cases} #1 \\ #2 ...
2
votes
1answer
155 views

tikz matrix background color for unevenly sized cells

I've adapted the example below from elsewhere on this forum. What I'd like is to have the background fill to come out as a rectangle covering the contents of all cells. What is the easiest way to ...
1
vote
0answers
56 views

plot matrix with epslatex

When plotting a data matrix with the plot command and epslatex terminal the generated image is correct. However, the generated latex file outputs also the source path, i.e. 'Date/data_file.txt'. Any ...
2
votes
1answer
77 views

Seemingly simple block matrix

I have a seemingly simple block matrix that I want to set with as few dependencies as possible. I already have amsmath and friends loaded. The only thing I'm intent on avoiding is blkarray. Here is ...