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

learn more… | top users | synonyms (1)

4
votes
0answers
32 views

Problem using matrix [on hold]

I'm a TeX noobie; just been using it to type up my math homework for the past week. It's really annoying using arrays so I asked my teacher how to quickly do matrices and he said something about ...
2
votes
1answer
33 views

Matrix: hline is cut by cmidrule

I want to emphasize a block structure in a matrix by both, vertical and horizontal lines. Since I am using bmatrix as matrix environment I had the issues as in How to shorten \hline in a matrix. I ...
6
votes
2answers
84 views

Scaling \ddots in smallmatrix

I'm trying visualize a very large matrix. To do so, I'm trying to use \vdots and \ddots in a bsmallmatrix enviroment. It works but they do not scale properly as \cdots do. Now, in the minimal ...
2
votes
1answer
47 views

Matrix format in Latex

How can a matrix be written in LaTeX? I have tried to use \begin{matrix} but I need to write the matrix below and I cannot understand how to fill it up exactly as this.
1
vote
0answers
17 views

Showing one row of a matrix in two lines [duplicate]

My matrix has 34 columns and I want to show one of its rows. I've tried the below code but I get error. \[ \begin{split} [\begin{matrix} 0.5932 & 0.5932 & 0.5932 & 0.5932 & ...
2
votes
2answers
27 views

A part of the Leontief matrix: something -> something

I know this is probably not needed considering I have a matrix and such, but I would like to know what the best way would be for formatting something like this into LaTeX: Tried using matrices and ...
0
votes
0answers
15 views

Problems using Tikz in Beamer [duplicate]

I am writing a beamer code, and I am copying and pasting some stuff from a normal file (documentclass book). I want to use the code \documentclass[a4paper,12pt,oneside,openright]{book} ...
13
votes
4answers
749 views

How do I create a bordered Hessian matrix in LaTeX?

I am supposed to use the following matrix in a math problem: But based on my experience with LaTeX's tables and matrices, I know this is beyond me. Can anyone tell me how to make the following ...
3
votes
1answer
52 views

How to get three matrices on the same line?

I am trying to get three different matricies on the same line, but the problem is that when I run the "code" below, I get one matrix above the other two matrices. What should I do in order to get all ...
1
vote
0answers
38 views

Complex matrix layout fails in beamer but ok in MWE

The MWE that follows works fine to layout this complex matrix. But when I paste it into a simple beamer document it fails (I also included that code Can you help me? ...
1
vote
1answer
33 views

A big matrix in latex [duplicate]

\documentclass{article} \usepackage{amsmath,amsfonts,amsthm,amssymb,mathrsfs,latexsym,paralist} \begin{document} \[ \begin{bmatrix} 1 & 0 & 0 & -1 & 0 & 0 & 1 & -1 ...
4
votes
2answers
52 views

Augmented matrix with fractions

I need to typeset some augmented matrices, but some of them contain fractions. I also need to do that with gmatrix, as I need its features. The following code is used to create the line in between ...
1
vote
1answer
76 views

Leontief-like matrix

How I can make matrices (similar to a Leontief technology matrix) as shown here?:
1
vote
4answers
46 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
29 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
72 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
636 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
48 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
49 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
35 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
20 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
27 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
42 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
56 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
57 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
64 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
148 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
58 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
90 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
206 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
87 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
32 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
67 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
105 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
63 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
27 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
63 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
62 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
39 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
121 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
29 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
61 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
96 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
35 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
131 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
85 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
168 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
237 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) ...