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

learn more… | top users | synonyms (1)

7
votes
5answers
159 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
28 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
21 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
68 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
99 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 ...
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
41 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...
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} & & ...
4
votes
1answer
92 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 ...
8
votes
2answers
128 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
20 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 ...
2
votes
1answer
63 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.
2
votes
1answer
34 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
50 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
39 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$ & \\ ...
1
vote
2answers
59 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} ...
3
votes
2answers
28 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: ...
4
votes
2answers
51 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, ...
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 & ...
4
votes
2answers
71 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} ...
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
49 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
64 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 ...
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} ...
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 ...
3
votes
1answer
58 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
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? ...
1
vote
1answer
46 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 ...
1
vote
1answer
79 views

Leontief-like matrix

How I can make matrices (similar to a Leontief technology matrix) as shown here?:
1
vote
4answers
55 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
39 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
84 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
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 ...
1
vote
1answer
74 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
51 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
47 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
29 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
76 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
67 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
64 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
69 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} & ...