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

learn more… | top users | synonyms (1)

0
votes
0answers
7 views

Matirces in latex

Trying to create a matrix using the below markup: \begin{figure} \centering \[ \begin{blockarray}{cccccccc} I & like & nlp & mlpr & enjoy & reading & books \\ ...
4
votes
1answer
46 views

Positioning and spacing of matrices

I have the following matrix as part of the text. \usepackage{mathtools} \begin{document} $ B = \begin{bmatrix*}[r] -35833 & -31743 & -25098 & -15178 & 0 & 26332 & 83775 ...
2
votes
3answers
73 views

Shrinking or splitting some equations in a group of equations

I have a group of equations, such as /begin{gather} Eq1 // Eq2 // Eq3 // Eq4 /end{gather} Unfortunately, some of the equations in the group are too long to fit on the page. For equations that are ...
4
votes
2answers
39 views

Odd spacing due to diagonal dots in pmatrix environment

I'm trying to typeset this matrix, but it seems the spacing between the fourth and fifth lines is off, perhaps due to the diagonal dots : Here is my Latex code : \[ \mathrm{Mat}_{\mathcal B}D = ...
6
votes
2answers
167 views

How can I highlight elements in a matrix?

I'm about to use this diagram to make computing 3x3 determinants clear and easy for my students. I tried to add this picture to my lecture but it's blurred due to the bad quality of the picture. So i ...
1
vote
1answer
54 views

How can I draw the diagram in top left of the following image in latex?

How can I draw the diagram in top left of the following image in latex?
4
votes
1answer
93 views

imagesc in tikz with non-symmetric matrices and squared axis

In principle the problem is the same like in matlab2tikz imagesc TikZ/pgfplots equivalent Can somebody tell me how to adopt this snippet to plot non-symmetric matrices but with squared axis (without ...
4
votes
1answer
37 views

Can anybody please let me know what I am missing? [duplicate]

I have type the following code. \begin{align*} \RR = \left\{ a_1 = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}, ...
3
votes
1answer
43 views

confusion matrix with [ ] delimeters

I would like to make a confusion matrix that looks like the one on the picture. How can I achive this? Thanks
6
votes
2answers
73 views

How to color a portion of a row in bmatrix

I am trying to color just a portion of rows of a bmatrix. How would I achieve this? Here is what I have so far: \documentclass{article} \usepackage{amsmath,mathtools} \begin{document} \[ ...
2
votes
1answer
40 views

Labelling the outside of a large matrix

I've been struggling to fit a large matrix on a page, and have finally managed to fit it in, although I had to make the entries very small. Now I want label the rows and columns of the matrix. There ...
7
votes
2answers
112 views

Evenly spacing aligned matrices with different elements

I have 8 vectors that I display as bmatrix in an align environment as follows: But as you can see, the first vector is slightly thinner, making the rest unaligned aswell. How can I make the first ...
3
votes
1answer
47 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
196 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
34 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
30 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
75 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
105 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
53 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
48 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
35 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
108 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
137 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
70 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
25 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
71 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
41 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
84 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
64 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
63 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
40 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
58 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
168 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
28 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
160 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
26 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
78 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
58 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 ...
7
votes
2answers
119 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
75 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
37 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
17 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
812 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
66 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
61 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
57 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
65 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
82 views

Leontief-like matrix

How I can make matrices (similar to a Leontief technology matrix) as shown here?: