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

learn more… | top users | synonyms (1)

2
votes
1answer
36 views

vertical and horizontal line in a matrix

I want to create a bmatrix on the right \documentclass[10pt,a4paper]{article} \usepackage[english]{babel} \usepackage{amsmath} \begin{document} \begin{equation} \begin{bmatrix}[c|c] _B[T]_B ...
7
votes
5answers
182 views

Dimensions of parts of a matrix

I have a matrix containing the values 0 and 1. The first column contains n_1 values of 1 and the rest is 0. The second column begins with n_1 values of 0, n_2 values of 1 and then 0 for the rest. I ...
4
votes
2answers
30 views

mathcal error with multicolumn multirow

I get the error \mathcal allowed only in math mode when I try to compile this MWE: \documentclass[12pt]{article} \usepackage{multirow} \begin{document} \[ \left( \begin{array}{c c c c} ...
1
vote
2answers
22 views

Problem with Tikzpicture and \matrix

I need to write two words in each node for a tikzpicture. The probles is that the words are not displayed correctly [see the code below]: I want to write the two words inside a single node (e.g., ...
4
votes
2answers
70 views

Issue with putting a bracket delimited matrix inside another matrix

I was trying to make this matrix delimited by brackets within another matrix. However, I always get the following error in my command window: ! Missing \right. inserted. <inserted text> ...
5
votes
2answers
101 views

How to produce bmatrix in pmatrix?

I wish to produce the following: So, far I only achieved the following: \begin{equation} \begin{pmatrix} v_a\\ v_y \\ \end{pmatrix} \sim \mathcal{N} \begin{pmatrix} \bar{v}_a, & \sigma_a^2 ...
4
votes
3answers
419 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) ...
3
votes
1answer
39 views

Tikz: multi-line vertically aligned node

Can I align these multi-line nodes vertically? \documentclass{article} \usepackage{tikz} \usetikzlibrary{ fit, positioning, matrix, } \begin{document} \begin{tikzpicture} \tikzset{ ...
2
votes
3answers
44 views

Two-column list

Does anybody here know how to generate a two-column list like the one that appears in the attached image? I'm having a hard time making the matrices look as neatly aligned as in the shared image...
4
votes
1answer
93 views

Same tikz. Two matrices. (Diagram legend)

could not figure out an answer to this one. I have a tikz diagram using tikz/matrix, and I want to have a legend next to it, also using tikz/matrix. But I do not know how to refer to one particular ...
3
votes
2answers
28 views

How to improve the display of this E_ij (canonical matrix)?

Here is my attempt: \[ E_{ij} = \begin{blockarray}{ccccccc} & & \text{$j$-th column} & & \\ & & \downarrow & & \\ \begin{block}{(ccccc)cc} & & ...
8
votes
2answers
129 views

Increase size of fractions on multiple lines

Inside a matrix, I have some very loaded (subscripts, greek letters, \breve) fractions: \begin{equation} Q_r = \begin{bmatrix} \frac{\partial \breve{y}_r}{\partial \theta_1}\bigg|_{t_1} & ...
4
votes
1answer
64 views

Redefining \bordermatrix

Greetings to all of the community! Could anyone help on redefining the \bordermatrix to get results as shown? The initial question was about changing form of braces (and there is a thread about it) ...
0
votes
0answers
22 views

Bordermatrix without the top row

Is it possible to remove the top row from a \bordermatrix? I only need to put indices on the left of the matrix, but even if I don't enter any values, my document creates a blank line above the ...
1
vote
1answer
59 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? ...
2
votes
1answer
64 views

Block matrices with LaTeX

Does anyone know how I could write this block matrix with a LaTeX code ? For now, this is a figure I did on photoshop... And I would like it to be an equation to have a better resolution.
11
votes
3answers
27k views

How to have matrices side by side in latex?

I'm new to latex and all of my matrices seem to be created on new lines, I can't seem to put them side by side. Here is what I am doing to make a matrix (with the 2d identity matrix as an example): ...
2
votes
1answer
35 views

Bordermatrix without brackets

I am hanging on this one since yesterday and was not able to find an example nor anything in the documentation --- maybe I am blind? What i want is a matrix with border annotations BUT without the ...
1
vote
0answers
54 views

LaTeX Error: File `kbordermatrix.sty' not found

I have the code for a transition matrix that compiles fine with a desktop editor like TeXstudio, however fails to compile in cloud-based LaTeX editors like ShareLaTeX or Overleaf: ...
1
vote
1answer
42 views

Creating a Payoff Matrix Using LaTeX Tabular Environment

I'm trying to use my limited knowledge of LaTeX to create a payoff matrix by hand. Here's my first try: \begin{tabular}{cc|c|c|} & & Player $Y$ & \\ ...
3
votes
2answers
32 views

horizontal line/rule in column vector

Trying to generate a column vector with a horizontal line/rule separating top half of the vector from the bottom half. Am starting from the following MWE: ...
1
vote
2answers
61 views

Setting unit of matrix/ alignment problem

How can I get unit of matrix [m] as shown in figure. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{babel} \begin{document} ...
4
votes
2answers
53 views

Spacing within brackets of a matrix

I am trying to add extra space after the left bracket and before the right bracket in a matrix. I've changed the column spacing with \arraycolsep, but I also want the entries right aligned. I can ...
5
votes
2answers
138 views

How to write matrices with dimensions in latex?

I am just starting to use latex, and with all the internet help i figured out how to do many things myself, but now i am stuck. How can I write what you all can see in the picture? Thanks for the ...
1
vote
1answer
25 views

Homogeneous Matrices (elements size)

I would like to homogenize the size of the elements of the two matrices, but it is impossible for now because there are these fractions. It is really ugly like this. \documentclass[paper=a4, ...
8
votes
3answers
3k 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 ...
7
votes
4answers
151 views

Multiple matrix equations, alignment

I want to write three matrix equations on multiple lines so I'm using alignat. However, the widths of the matrices on each line are not equal. How can I make sure they will be? I've been looking ...
1
vote
0answers
25 views

Why do I get an error when putting more elements in a row of a bmatrix? [duplicate]

I'm using bmatrix to display a simple matrix. Curiously, this does not work with a 1x11 matrix, while it does work with a 1x10 matrix: This works just fine: $$ \begin{bmatrix} a_1 & a_2 & ...
12
votes
4answers
7k views

How to construct a confusion matrix in LaTeX?

A confusion matrix looks like: Is there an easy way to do the same using LaTeX? Otherwise I could just create a diagram with any software.
4
votes
2answers
72 views

Compile error with redefined bmatrix and align environment

I just spent a couple of hours finding the reason for compiling errors in the last example in here: \documentclass[a4paper,draft=true, headsepline=on, twoside , 11pt, ]{scrbook} ...
3
votes
2answers
111 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
34 views

Problem using matrix [closed]

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
51 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
105 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
68 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
34 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
798 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
16 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
59 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
1answer
47 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
63 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
5k 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
80 views

Leontief-like matrix

How I can make matrices (similar to a Leontief technology matrix) as shown here?:
1
vote
4answers
56 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
646 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
40 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
86 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
156 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
3k 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?