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

learn more… | top users | synonyms (1)

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 ...
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 ...
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 ...
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} ...
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 ...
11
votes
6answers
4k views

Labelling Ax = b under an actual Matrix

I wish to achieve the following in Latex: | a b | x | x1 | = | b1 | | c d | | x2 | | b2 | A x b Where I write the labels A, x, and b under the respective matrices. The code I'm ...
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!
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 ...
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 ...
6
votes
4answers
148 views

Every element of a matrix with \displaystyle

Is there a way to make every element of a matrix to be \displaystyle? I tried many approaches but changes happened within a matrix environment. For example, \documentclass{article} \begin{document} ...
5
votes
3answers
2k views

How do I typeset vertical and horizontal lines inside a matrix?

(From the notation used in course notes for Stanford CS229 available online.) I'm trying to typeset the following matrices made up of row or column vectors: Any ideas?
1
vote
1answer
47 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 ...
11
votes
3answers
53k views

How to write an m⨉n matrix in LaTeX?

I tried using the below code but it works only for 2⨉2 matrix. \[ M= \left[ {\begin{array}{cc} 1 & 2 \ 3 & 4 \ \end{array} } \right] \] Now the following doesn't work ...
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 ...
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} ...
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 ...
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 ...
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} & ...
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 ...
2
votes
1answer
1k views

symmetric matrices

What are your solutions to properly place the shortcut 'sym' in symmetric matrices? \documentclass{book} \usepackage{amsmath} \begin{document} \begin{equation} ...
10
votes
3answers
3k views

Border matrix with multiple indices on top and bottom

How can I write a matrix where there is an index at the top and also at the bottom? \bordermatrix doesn't seem to have an option for multiple indices.
3
votes
2answers
205 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 ...
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 %% ...
11
votes
3answers
4k views

Matrix change row or column background

I have a matrix shown below. I would like to have the whole row green rather than only the cells ... how can I do that? \begin{equation}\label{eq:appendrow} \newcommand\x{\times} ...
19
votes
4answers
4k views

Multirow/multicolumn cells in TikZ matrices?

Is it possible to make TikZ matrix cells span multiple rows/columns, like they can in LaTeX tables using \multirow/\multicolumn? Specifically, I'd like to typeset something like the following in a ...
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& ...