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

learn more… | top users | synonyms (1)

4
votes
2answers
61 views

How can I make a similar matrix with even column spacing?

I'd like to make a similar matrix to the one pictured below, but as you can see, the spacing between the columns is inconsistent due to the length of the words. Here is the code I used: \[ \...
4
votes
2answers
34 views

Is there a way to use \xmat* in the physics package to use upper indices?

In the physics package, \pmqty{} gives a matrix with rounded brackets. Combining this with \xmat*{}{}{} allows you to choose a letter in the first argument, followed by number of rows and then by ...
4
votes
1answer
52 views

Add more horizontal space between matrices

I have two questions: How can I add more horizontal spacing between the matrices? Furthermore, is there a way to add some text above the matrices? I added a picture with the desired ouput. Here's ...
2
votes
2answers
48 views

column vector without using \bmatrix?

How can I write a colomn vector like following without using \bmatrix? (no \usepackage{amsmath}) Thanks a lot!
5
votes
3answers
107 views

produce Matrix with col-vector on right and row-vector on bottom

I need this; But after some tries with replies available on TeX.SE, I could manage only this; The code to get this is given below \begin{equation}\label{eqn:designRule} \begin{split} &{\...
2
votes
2answers
138 views

Tikz Matrix No shape named

I try to write my bachelor thesis with LaTeX. In this I have problems with TikZ. I like to make braces over my matrices like this: I have several problems: can´t draw dashed line between 6. and 7....
8
votes
1answer
69 views

How to properly use \collect@body within align environment

The following code (an example of using \collect@body as a test case for this specific question) modified bmatrix to not add the surrounding [ and ]. This seems to work fine, but requires that I ...
0
votes
0answers
22 views

Coloring block-matrix with opacity [duplicate]

For some of the equations in a beamer presentation, I want to use colors to remark different blocks of a matrix, in order to focus the attention in a particular sub-set of blocks, I want to overlay ...
-1
votes
0answers
24 views

Matrix labelling [duplicate]

I need your help desperately. I want to write something above and on the side of a 5x5 matrix for my master thesis. But I don't know how to do it. Can you please help???
2
votes
1answer
44 views

! Missing number, treated as zero, for creating a two-row matrix in Latex

I'm trying to create a matrix using the below commands: \begin{equation} \psi = \begin{pmatrix} [{\overrightarrow{\sigma} \cdot (\overrightarrow{P} - e\overrightarrow{A}) + (p_{0} - eA_{...
2
votes
1answer
58 views

Letter “c” appearing inside pmatrix environment with aastex

My journal recently updated its official class file, aastex, from version 5.2 to version 6.0. Apparently this was a major rewrite, as the journal abandoned its own class and based 6.0 off the ancient ...
1
vote
0answers
32 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 ...
1
vote
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 ...
2
votes
2answers
38 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}...
1
vote
1answer
56 views

Help writing a matrix

I have trouble in wrtiting this block matrix Any idea? Thanks a lot.
2
votes
1answer
32 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.
2
votes
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 ...
4
votes
1answer
100 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]{ ...
5
votes
2answers
91 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....
2
votes
1answer
62 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 ...
2
votes
2answers
42 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 ...
6
votes
1answer
57 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{...
5
votes
2answers
137 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 ...
1
vote
3answers
216 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.
4
votes
4answers
207 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} \...
1
vote
1answer
48 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 ...
4
votes
1answer
55 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
38 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
16
votes
3answers
832 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{...
2
votes
1answer
51 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
29 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
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!
3
votes
2answers
120 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 ...
4
votes
2answers
111 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. ...
2
votes
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. \begin{equation} Y = \begin{bmatrix} \textit{\textbf{t}}_{1} \\ \textit{\textbf{t}}...
7
votes
3answers
368 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!
4
votes
1answer
59 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: \[\...
0
votes
1answer
25 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 ...
3
votes
3answers
169 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{...
3
votes
2answers
131 views

A question about typesetting a partitioned matrix

How one can create the following matrix?
2
votes
1answer
90 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
36 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
35 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 ...
1
vote
1answer
85 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 ...
4
votes
2answers
36 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]{...
2
votes
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} \\ \...
3
votes
2answers
123 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 ...
0
votes
1answer
61 views

The diagonal line in the matrix

please tell me how you can draw this matrix?
1
vote
2answers
41 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)}(...
3
votes
3answers
150 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^{(...