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

learn more… | top users | synonyms (1)

1
vote
1answer
36 views

Latex matrix tikz

I would like to created a matrix as the one in the picture. I read on another post that it is possible to do with tikz. My problem is that I want also to write on the left A= the matrix, with A= ...
0
votes
1answer
21 views

Writing this Matrix in Latex

I want to write this matrix in Latex: I wrote this code: \[ \begin{bmatrix} 0 \ldots 0 & 0 \ldots 0 & d_{i,L} & * \ldots *\\ 0 \ldots 0 & 0 \ldots d_{i,L-1} & * & * \ldots ...
1
vote
2answers
20 views

Underbrace in matrix problem

I have the latex code below for a matrix which I want to define. The problem is that in the 5th column the terms overlap with the 4th column and the right "edge" of the matrix. Can this be solved ...
4
votes
2answers
21 views

Size of a matrix is too big to fit inside text block

I know there's other topics with this kind of question, but I tried a few solutions and just got errors... My code is: \documentclass[12pt,a4paper]{article} \pagestyle{myheadings} ...
1
vote
1answer
27 views

Matrices with big zero and lines

I often need to write matrices with big zeros and lines across the matrix. Does there exist a package to do that easily? What's your strategy or your good habits when you have to write such ...
5
votes
1answer
123 views

Illustrating a matrix assembly within the array environment

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 K1 ...
2
votes
3answers
28 views

Line on the left hand side of multirow?

I am currently working with this code: \begin{tabular}{ll|l|l|} \cline{3-4} & & \multicolumn{2}{c|}{Predictions} \\ ...
3
votes
2answers
116 views

Writing a recursive matrix pattern

Consider the following matrix \begin{equation} \begin{pmatrix} B_{0,0} & B_{0,1} \\ B_{1,0} & B_{1,1} \end{pmatrix} \end{equation} The next matrix in the iteration is going to ...
3
votes
1answer
48 views

Filling matrix rows with a user defined key-value macro

I'm trying to create tables with many columns and many empty fields. I'd like to reference the fields later as TikZ nodes to add more TikZ stuff around them, so \matrix{} looked like a good idea. I ...
0
votes
1answer
54 views

The diagonal line in the matrix

please tell me how you can draw this matrix?
1
vote
2answers
33 views

Breaking lines of array matrix

I have a line of matrix arrays such as the next figure Below the code of that matrix. \begin{figure} \[ P=\left(\left\{\begin{array}{l} p^{(1)}(x_1,x_2,\cdots,x_{r_1}) \\ \vdots\\ ...
3
votes
3answers
135 views

Align Matrix (Vector) on latex

I am trying to align the entries of this vector to the left. Could you help me please? Below is my code and next the result. P=\left(\begin{matrix} p^{(1)}(x_1,x_2,\cdots,x_{r_1}) \\ \vdots\\ ...
1
vote
2answers
33 views

Wide equation - how to avoid the equation number on next line?

I have an equation with a large matrix that I want numbered as an equation. I use the code shown underneath: \documentclass[12pt,a4paper]{report} \usepackage{amsmath} \begin{document} ...
1
vote
2answers
43 views

bmatrix sizes differ from each other

My problem is that the outputs of \bmatrix are a bit weird and not of the same height and the linespacings are different depending on element heights. I have put these on a blank document and I got a ...
4
votes
1answer
50 views

How to align columns of two separate matrices?

I have two equations involving matrices in an align environment. One of the matrices is wider than the other. How do I align them so that they are equally wide? A minimum working example: ...
2
votes
2answers
268 views

How can I do matrix with 1 column?

I want to make a matrix with elements like in the image: How can I do this? Thank you!
0
votes
2answers
56 views

Vertical dotted column in matrix

If I wanted to "draw" dots in entire row, I'd use for expample \hdotsfor{4}, but how can I "draw" an entire column with dots, I haven't found something like \vdotsfor. With \hdotsfor{5} we get this, ...
1
vote
1answer
45 views

3x3 Normal Form Payoff Matrix in LaTeX Tabular Environment

~Disclaimer~ This question is a generalization of this question to the 3x3 case. I would like the same format as the top example in the answer to the above question; That is, "Player 1" on the left, ...
3
votes
1answer
31 views

! Missing $ inserted when try to using superscript in matrix in beamer

I got the ! Missing $ inserted mistake message when I try to use superscript inside a matrix environment in beamer. The following is my code \begin{frame} \begin{pmatrix} ...
6
votes
1answer
41 views

Using cases in a node in a matrix

I am trying to put piece-wise functions into nodes in a Tikz diagram. Using cases works fine in a Tikz node that is separate within a tikzpicture environment. Putting the same node in a matrix breaks ...
0
votes
1answer
24 views

Creating a multiline equation [duplicate]

I am really struggling to create a multi line equation that incorporates both a matrix and a single equation that lines up the equals signs such as the one below: So far have done the following: ...
0
votes
1answer
23 views

How to align a row vector and column vector such that the row align to the first entry of the column

I have a column vector multiplies by a row vector. I want to align the row vector with the first entry of the column vector. I would appreciate any feedback.
0
votes
1answer
35 views

bmatrix in beamer not working

I'm unable to use the flags to center the column and add a dashed vertical line in the bmatrix environment. This code was working on another LaTeX file but somehow I can't make it work with beamer: ...
1
vote
1answer
69 views

How can I typeset non-square matrices?

I'd like to typeset a non-square matrix in the manner of $\begin{array}$, but I don't know how. How can I typeset a 4 x 3 matrix, for example?
2
votes
1answer
40 views

How to make a matrix that wolfram and symbolab can read (ideally through lyx) dsafds

I would like to be able to visually write math equations in lyx and then copy them to wolfram and symbolab to compute the answer. For example I can copy ...
1
vote
2answers
41 views

Stack of matrices with unequal sizes

I have to write a list of two matrix equations. They are almost identical, but the elements in one matrix are slightly larger than the other one, which makes it look badly. \begin{align} ...
14
votes
4answers
7k 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} ...
1
vote
1answer
37 views

Make column widths of multiple matrix columns equal

I have some gauss matrices in an align* environment, like this: \documentclass{article} \usepackage{amsmath} \usepackage{gauss} \newcommand{\BAR}{% \hspace{-\arraycolsep}% \strut\vrule % the ...
3
votes
2answers
268 views

Simple visualization of 3D matrix

I need to visualize 3D matrix in a way similar to this one: There are no arrows needed, I only want to have all 2D arrays fully visible, one "behind" each other and their corners connected by lines. ...
4
votes
2answers
64 views

Delete an element in a matrix

I created a matrix, but how do I delete the numbers in the matrix? \documentclass{article} \usepackage[table]{xcolor} \usepackage{collcell} \usepackage{hhline} \usepackage{pgf} ...
1
vote
0answers
36 views

How to label rows and columns matrix?

I'm using LaTeX to do some basic matrix creation in a GeoGebra document as shown below: \begin{bmatrix} 0 & 0 & 1 & 1 & 0 \\ 1 & 0 & 0 & 1 & 0 \\ 0 & ...
2
votes
0answers
61 views

Draw a matrix with Latex

I did a matrix with Latex, but I do not know how how to do the colored square. Any idea please? Thank you \documentclass{article} \usepackage[table]{xcolor} \usepackage{collcell} ...
3
votes
2answers
58 views

vertical align matrix in table

I am trying to vertical align a matrix to the content of the other cells in a table, and im pretty much stuck. Here is a quick mockup of whats my problem. In fig2 at least the content is aligned ...
1
vote
0answers
42 views

Row Operations Error (Repost) [duplicate]

I couldn't comment on my last post, that's why it's a duplicate. I'm trying to put "arrows operations" in my matrices but I keep getting a Latex error. Could you guys help me out? I used the linalgjh ...
8
votes
1answer
96 views

Add matrix name inside tikzpicture

I have this matrix and I would like to name it. I have to enter H = in the begining of the matrix but I cant. I tried with \begin{bmatrix} but I can't circle with TikZ. \begin{equation*} ...
2
votes
1answer
29 views

color (solid) individual nodes in tikzpicture matrix

in the following MWE, I create a 'Coates diagram' I use for one of my classes. What I haven't been able to figure out is...how to colour the individual nodes? I want them to be solid, say, RGB-based ...
3
votes
2answers
61 views

Adding vertical line (equal sign) to augmented bmatrix WITHOUT using array

Is there a way to add a vertical line (equal sign) to an augmented bmatrix (4x4) WITHOUT using array? Any help provided would be greatly appreciated.
0
votes
1answer
47 views

Writing matrix inside an equation

I wanna type this equation. Normal equation/matrix code not working.
2
votes
1answer
28 views

How to center elements of different sizes

I would like to display some matrix things \begin{frame} \begin{align*} \left( \begin{array}{c} y_1 \\ y_2 \\ \vdots \\ y_T \\ \end{array} ...
0
votes
0answers
33 views

Row Operations Error

I'm trying to put "arrows operations" in my matrices but I keep getting a Latex error. Could you guys help me out? Thanks! \documentclass[11pt]{article} %size, document type \usepackage{fullpage} ...
1
vote
0answers
40 views

How to write the following matrix requiring both case and block array environment?

I am trying to write the attached equation using block array environment. I am suppose to use both the case and block array environment for achieving the desire output. However, I have completed ...
2
votes
1answer
55 views

Labeling rows/columns of a matrix with text and braces

I would like to label rows and columns of my matrix with formulas and text. I've started with a version using bordermatrix. \[ \underbrace{ \bordermatrix{ & \underset{\downarrow}{x} & ...
3
votes
1answer
33 views

How to add tabular lines, matrix lines to arrays in LyX?

The buttons such as Set all lines, Set right line, Set left line and Set bottom line are not activated with arrays as the example on the left while they are activated on the example on the right ...
0
votes
0answers
12 views

Permutation matrix does not compile [duplicate]

I am getting the error "extra alignment tab has been changed to \cr." This is the code that is not compiling. It compiles up until I put in 2 digit numbers into the pmatrix environment: ...
0
votes
1answer
48 views

Color two columns separately in a matrix

From the solution code found here, I wanted to be able to also have a colored box around the x4 column like this: I also looked at the solution posted here that gives different colors in ...
1
vote
0answers
24 views

Divide a matrix into two regions in latex by line and color [duplicate]

I have a matrix whose elements belong to two different classes, and I need to distinguish them by color. Something like this figure: Any tutorial or instruction?
0
votes
1answer
78 views

How to create augmented matrix in iBook Author using LaTeX [duplicate]

I am very new to LaTeX so please bear with me if my question is rudimentary. I searched through other questions and while this question has been answered the solutions provided did not work for me, ...
0
votes
1answer
26 views

Get an underbrace under a matrix

Hi I have a matrix that i want an underbrace under. But I do not manage to do it. \underbrace{ \begin{bmatrix} &2(r_1^T - r_2^T) &2(t_2-t_1) \\ &2(r_1^T - r_3^T) &2(t_3-t_1) \\ ...
9
votes
2answers
4k views

How can I put a matrix in a figure caption?

I would like to put a matrix in a figure caption. The following example demonstrates the idea: \documentclass{amsart} \usepackage{graphics, epsfig, psfrag} \begin{document} \begin{figure} ...
4
votes
1answer
34 views

Is there a way to set the default alignment for mathtools matrices?

I have a lot of mathtools matrices in my document that require right alignment (and others that have other alignment): \begin{bmatrix*}[r] 1 & 0 & 0 \\ 7 & 1 & 0 \\ \end{bmatrix*} ...