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

learn more… | top users | synonyms (1)

16
votes
3answers
781 views

Aligning the minus sign in a matrix

I would like to be able to align the minus sign in a matrix so that the minus is to the left of the numerical column. I have written my matrix as the following: \begin{eqnarray} \left( ...
4
votes
3answers
273 views

I want to typeset following matrix in LaTeX

I have a problem with following matrix. Actually I can't put this matrix in LaTeX.
0
votes
1answer
32 views

How are large-scale matrices typeset?

I have a 36 by 36 matrix that I need to include in a statistics paper. I have the matrix in Maple (can be exported to Excel or Matlab), but I want it in "tex"-style inside my paper and in a small ...
3
votes
1answer
42 views

How to move the matrix on the left side?

I would like to move the matrix on the left side, alligned with the text. Do you know how to make it? \documentclass[10pt,a4paper,titlepage]{book} \usepackage[paperwidth=165mm, paperheight=238mm, ...
2
votes
1answer
28 views

Divider lines of matrix [duplicate]

I would like to create a matrix with divider lines as shown in the following figure: I'm not looking for a straight line like in this answer. any idea on how to do it? thanks in advance
2
votes
1answer
47 views

How to skip baseline in equations?

I used the following code to resemble the formula on the right hand side of the picture, but I get the left hand side in which the columnar matrix is too tall! \documentclass[12pt]{book} ...
2
votes
1answer
24 views

Matrix Multiple Alignment

The following code generates: You can see that the first and the second line are centered on the right side of the left brace. How can I stick to the current code implementing "\begin{matrix}" ...
0
votes
0answers
14 views

How to draw lines in matrix? [duplicate]

Can you help me to draw a some lines in matrix? I attached it in image : Thank you!
3
votes
2answers
110 views

How do I draw a path of grey background through elements of a matrix?

I would like to draw a highlighted path along elements of a matrix, as in the following example (which looks quite ugly as I drew the path manually with Gimp). I know ways of changing the color of ...
1
vote
2answers
63 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, ...
4
votes
2answers
100 views

Obtaining a properly aligned complex matrix

I'm trying to write a matrix that contains two items with a fraction inside of it. I see that the matrix output is pretty strange because the rows and columns are not spaced with the same scale. ...
7
votes
3answers
356 views

What is the best way to create this kind of binary matrix?

Like the fig 2. on page 3 of Relations in Mathematical Morphology with applications to Graphs and Rough Sets, John G. Stell Thank you!
2
votes
2answers
30 views

How to put vector element next to matrix

The code is below. I want B to be printed without brackets arround since it is just one vector element. \begin{equation} Y = \begin{bmatrix} \textit{\textbf{t}}_{1} \\ ...
0
votes
1answer
19 views

crossing columns in package sgame

I am using the package sgame for drawing strategic-form games for my thesis on game theory. Everything works fine, but I do not know how to cross rows or columns which are dominated. I found a very ...
4
votes
1answer
56 views

Alignment problem for a matrix

I have written the following matrix on Latex: However, I would like the different elements to be aligned vertically, i.e.: I have been unable to accomplish this. My code is the following: ...
11
votes
2answers
3k views

How to force nodes to have the same size in tikz matrices

Is there some intelligent way to have several tikz nodes have the same height and width? Consider the following example with output below. I'd like every node in each row to have the same height ...
3
votes
3answers
136 views

How to create angular matrix with rectangle as borders

I would like to replicate a matrix like this: A matrix with straight horizontal and vertical lines forming a rectangle around its content. I tried using array environment with hlines $$ ...
0
votes
1answer
27 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
52 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: ...
2
votes
1answer
75 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= ...
3
votes
2answers
116 views

A question about typesetting a partitioned matrix

How one can create the following matrix?
0
votes
1answer
27 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
33 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
33 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
41 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
129 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
34 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
120 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
51 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
59 views

The diagonal line in the matrix

please tell me how you can draw this matrix?
1
vote
2answers
34 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
138 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
48 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
63 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
270 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!
1
vote
1answer
71 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
37 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
46 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
26 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: ...
1
vote
1answer
70 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
47 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
45 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
41 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
291 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
44 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
65 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 ...