# Tagged Questions

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

0answers
28 views

### Getting matrices with line break in cell

I have a long matrix which is occupying two lines. How can I force a line break in the cell? I've seen it done here for tables: How to add two force line breaks in cell, but that solution doesn't help ...
1answer
42 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 ...
1answer
19 views

### Nested arrays with labeled rows and columns

I want to represent a four-dimensional tensor using a matrix of matrices. Additionally, I want to label the rows and columns of the inner matrices. My attempt to make this labeled matrix of matrices ...
2answers
36 views

### How to place big matrix in page (A4)?

I have this matrix and it is very big for contain in page (A4 paper). How do I make to place in page? \[A = \begin{bmatrix} %C1 m &\sum_{i = 1}^{m}{x_{i1}^{C_1}} &\cdots &\sum_{i = 1}^{m}...
1answer
55 views

### Help writing a matrix

I have trouble in wrtiting this block matrix Any idea? Thanks a lot.
1answer
31 views

### Matrix array overflow

I have an extremely large matrices and I can't show it in portrait or landscape size of a page. so is there any way to show the matrix with its array like command pretty do in Matlab.
1answer
36 views

### Is it possible to redefine the & aligment symbol?

In constructs such as {matrix} and when aligning multi-line equations, you use the ampersand & as alignment symbol. Is it possible to use another symbol for that? (There are reasons for my ...
1answer
95 views

### visualizing matrix factorization

I want to create diagram like below. Update: Mostly done. \documentclass{standalone} \usepackage{amsmath} \usepackage{tikz} \usepackage{colortbl,pgfplotstable} \pgfplotstableread[header=false]{ ...
2answers
84 views

### how to vertical align text before blockarray in blkarray package?

I have to label row and column index around matrix. I know blkarray would help, so I write like this: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{blkarray}% http://ctan....
1answer
57 views

### filled circle in table field

At the moment I am using beamer and have a table in a frame: Everything works fine except that where I put this color filled circle the table breaks apart but I want to have the circle just within the ...
3answers
39 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.
2answers
38 views

### How to ensure that content within a column vector do not touch? [duplicate]

I have some variables defined in a column vector written in mathmode in the usual way $\begin{bmatrix} \dfrac{1}{i} \\ \dfrac{1}{j} \end{bmatrix}$ However, the result shows that they are almost ...
1answer
55 views

### How to add arrows going from a matrix to column vectors?

If possible, I would like to know how to do this. Thank you. Here is my code: \documentclass[11pt]{memoir} \usepackage{tikz} %%% GRAPHIQUE \newcommand{\largeto}{\mbox{\LARGE${}\to{}$}} \title{...
2answers
126 views

### Tikz fill color

At the moment I'm using this command in the preamble to fill the color of the specified row with grey: row 2/.style={ nodes={fill=gray!10} } Unfortunately I have to write this ...
3answers
212 views

### Creating a weird matrix

So I'm making a documentation about Coding Theory and I'm almost over, but I'll have to create a matrix and I have no idea how to create this specific one, any help would be appreciated.
4answers
203 views

### How can I align the arrows?

This is a picture of what I would like to get and what I actually get. This is the code: \documentclass[11pt]{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{microtype} \...
3answers
821 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( \begin{...
3answers
280 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.
1answer
48 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, ...
1answer
35 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
1answer
48 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} \...
1answer
28 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}" ...
0answers
15 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!
2answers
116 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 ...
2answers
69 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, ...
2answers
109 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. ...
3answers
362 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!
2answers
32 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. Y = \begin{bmatrix} \textit{\textbf{t}}_{1} \\ \textit{\textbf{t}}...
1answer
23 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 ...
1answer
58 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: \[\...
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 ...
3answers
154 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  \begin{...
1answer
59 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: \...
1answer
85 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= ...
2answers
123 views

### A question about typesetting a partitioned matrix

How one can create the following matrix?
1answer
31 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 *...
2answers
34 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 ...
2answers
35 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} \usepackage[utf8]{...
1answer
63 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 ...
1answer
130 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 ...
3answers
38 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} \\ \...
2answers
123 views

### Writing a recursive matrix pattern

Consider the following matrix $$\begin{pmatrix} B_{0,0} & B_{0,1} \\ B_{1,0} & B_{1,1} \end{pmatrix}$$ The next matrix in the iteration is going to ...
1answer
54 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 ...
1answer
60 views

### The diagonal line in the matrix

please tell me how you can draw this matrix?
2answers
39 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\\ p^{(m_1)}(...
3answers
144 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\\ p^{(...
2answers
34 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} \setcounter{...
2answers
50 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 ...
1answer
74 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: \...
2answers
276 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!