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

learn more… | top users | synonyms (1)

0
votes
1answer
44 views

Alignment across multiple equations

Right now, my document looks like this: Or, like this: It bothers me a lot that the equations are scattered all over the place and are not evenly aligned. I want, for example, each line be ...
2
votes
1answer
32 views

Matrices off the page

My matrix goes off the page. Usually, when I work with simple equations, I use the code \begin{eqnarray}\end{eqnarray*} to align equations vertically by the equal sign. Do you know if I can do ...
1
vote
2answers
63 views

How to create a matrix by itself and have a letter equal to it?

I am trying to exactly duplicate this picture here in LaTex. ... so far all i have is \[ \left( \begin{array}{ccc} a & 0 & 0 \\ 0 & b & 0 \\ 0 & 0 & c \end{array} ...
1
vote
1answer
106 views

Why can't I vertically align these two matrices?

Why won't these matrices become left-aligned? \documentclass[11pt,a4paper,oneside]{report} \usepackage[pdftex]{graphicx} \usepackage[T1]{fontenc} \usepackage{fouriernc} \usepackage{mathtools} ...
4
votes
1answer
85 views

Split nodes in TikZ math nodes matrix with Beamer?

TikZ matrices and Beamer do not work smooth -- for example, we have to use ampersand replacement work around. Is there a similar work around that allow one to use \nodepart ? The MWE is this: ...
2
votes
1answer
27 views

Lyx doesn't display matrix correctly

I have tried to insert following LaTeX code for matrix in Lyx: $u_{L}(k) = \sqrt{E}\begin{pmatrix} 0 \\ 1 \\ 0 \\ -1 \end{pmatrix}$. In all LaTeX-based sites this code is displayed correctly, but ...
8
votes
2answers
203 views

How to make the matrix in this image

How to make the matrix in this image? I need to achieve it with LaTeX.
5
votes
2answers
87 views

Matrix is too small, how to make it bigger?

I am trying to make the following matrix bigger since the elements do not fit quite well inside of it. I don't know why.. \documentclass[11pt,a4paper,oneside]{report} % KOMA-Script book ...
8
votes
5answers
392 views

What's the best way to write matrix together with its dimensions on top and left?

I'm trying to show that matrix A (m rows, n columns) times matrix B(n rows, k columns), results as matrix C ( m rows, k columns). I wonder what's the easier way to write it? there are several ...
1
vote
1answer
38 views

How can I align horizontally matrices of different dimensions?

I'm wondering how can I align two different matrices horizontally. They are: [-1 0 +1] And: [-1 0 +1].T This is my code: \begin{equation} \begin{bmatrix} -1 & 0 & -1 \end{bmatrix} ...
1
vote
2answers
102 views

Improving my latex codes for matrices

i want to write my latex code as in the image inserted below. Please can someone help me to improve my code here to let them look like in the image. \begin{multline*} \begin{bmatrix} k_{A,t} \\ ...
2
votes
3answers
148 views

Create a good looking 2-actor normal-form game such as Prisoner's Dilemma

I am having difficulties in adjusting the TikZ code to get a symmetrical output matrix; I guess the * is the reason the right block is somehow higher? ...
7
votes
3answers
111 views

Conditional compilation of code based on package version [duplicate]

I am working on a document with a colleague and we have different versions of PGF/Tikz installed -- I have version 3 and he has version 2.10. This is causing a problem for compilation on our two ...
1
vote
1answer
96 views

Error in matrix form? [duplicate]

I am writing this matrix in my report: \begin{align} \mathbf{x}= \begin{pmatrix} 1 & 1 & 1 & 1 & 0 & 1 & 1 & 0 & 1 & 0 & 0 & 1 & 0 & 0 ...
6
votes
2answers
192 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 ...
7
votes
2answers
143 views

How to make two 2x1 matrices in the same column?

I'm using LaTeX to show the butterfly visualization of fast Fourier transformation and I'm stuck at drawing the matrix. I want something like this: i.e. if I have a vector of length 8, in the next ...
4
votes
1answer
35 views

Inserting matrix/array in Table of Contents

I am trying to insert an equation containing matrix inside ToC. \subsection{Cross Product } \subsubsection{Cartesian : $\nabla \times A = \left| \begin{array}{ccc} a_x & a_y & a_z\\ ...
9
votes
3answers
128 views

Aligning different matrices

I want to write the companion matrix of a recurrence relation and its use (the notation will be a bit unusual since it is "for cryptography", where we always do stuff in a different way). ...
1
vote
0answers
28 views

Inserting matrix of various sizes in LatexDraw

I am trying to insert a $6\times 6$ matrix in LatexDraw and thereby generate the corresponding PStricks codes. But I am able to insert only a $4\times 6$ matrix. When I increase one row, the matrix is ...
1
vote
0answers
27 views

Inserting matrix in Latexdraw

I am using LatexDraw for drawing a graph and its corresponding matrix and thereby generating the Pstricks codes.. But I am having problem in inserting the matrix. I have attached here the screen shot. ...
3
votes
1answer
95 views

Angle of \ddots in an uneven matrix

I have the following triangle matrix with zeroes on the diagonal \documentclass[a4paper]{memoir} \usepackage{amsmath} \begin{document} \[ M = \begin{pmatrix} 0 & a_{1,2} & a_{1,3} & ...
3
votes
3answers
198 views

Submatrix and element alignment within matrix

I'm having trouble aligning submatrices and elements within the same matrix. Essentially, what I want to do is this (excuse the terrible paint-job): Where the submatrix Q is located at the middle ...
2
votes
1answer
71 views

Thickness and alignment of curly braces for block matrix dimensions

I need to create block matrices with the dimensions in the right. The blocks of the matrices are of different dimensions. Here is a MWE: \documentclass{article} \usepackage{easybmat} ...
1
vote
1answer
51 views

Draw array(data structure) with underbraces at subarray

I'm pretty new to latex and I'm having some difficult to draw this: It is very important that the dots do not be inside a column, but act like a separator (actually it indicates that there are an ...
3
votes
1answer
53 views

In an avm, can the horizontal space between the brackets be set manually?

I've created a simple attribute-value matrix using a custom style file avm.sty which is explained here. However, it is so narrow that the right bracket overlaps with the text. ...
1
vote
2answers
122 views

How to make the following matrices?

I follow the following code for the Matrices but it's not working so need some guidance to reproduce the code. I want to make the following Matrices (image)? I follow the following code but it's not ...
3
votes
2answers
545 views

Can someone Fix this monster

\begin{pmatrix} m_{1+}\hat{p}_{1H}\hat{q}_{1H} & \multicolumn{2}{c}{\text{\kern0.5em\smash{\raisebox{-1ex}{\Large 0}}}} & \multicolumn{1}{|c}{m_{12}\hat{p}_{1H}\hat{q}_{1H}} \\ & ...
2
votes
1answer
84 views

How can I set the width of a pgfplot to fit that of a tikz matrix?

I'd like to be able to control the width of a pgfplots plot to that of a matrix. The plot should be below the matrix. Ideally the plot's dimension will depend only on the size of the matrix (so if the ...
6
votes
3answers
126 views

Sup-left with a matrix

If I want to have supscript on the left, I usually do {}^xa. How can I do this when I have a matrix. So what I want is {}^x\begin{pmatrix} a & b \\ c & d\end{pmatrix} However, this doesn't ...
3
votes
0answers
36 views

Creating a Macro for an n-by-m Matrix in LyX

Specifically, I'd like to create a matrix such as $\left[\begin{array}{cc|c} a_{1} & a_{2} & a_{3}\\ b_{1} & b_{2} & b_{3}\\ c_{1} & c_{2} & c_{3} \end{array}\right]$ But in ...
4
votes
2answers
104 views

Setting over- and underbraces outside an matrix formula

I want to typeset a matrix which consists of several submatrices. As they consist of some longer formulae I'd like to assign each a name. I tried to use \underbace and \overbrace. However now the ...
6
votes
1answer
105 views

Formatting of long equation containing a matrix?

I've a problem formatting this equation. It's containing a 5x1 matrix and the content of a cell in a matrix is pretty long. All in all it does not fit on the page. Should I use split() or is there ...
2
votes
2answers
52 views

Adding vertical line and left brackate in array

I want to display my content like in image. I have considered array for this. Let me know if is there any better option for this. \textbf {accesslog : } \textcolor{red}{ Array } \begin{tabular}{ ...
2
votes
0answers
43 views

How to reduce vertical space in matrix?

I want to reduce the size of the vertical space in matrix environment and have a result something like this But at present I manage something like below with the following code ...
2
votes
1answer
61 views

How to add dash lines in Matrix [duplicate]

I would like to know how to add dash lines in Matrix (see figuge) Cheers S.L. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{bmatrix} N & B_i \\ B_i^T ...
4
votes
1answer
51 views

Matrix row alignment on two sides of an equation, with rules

I have the following code to generate a matrix equation, on the LHS matrix, a couple of rules are added, that causes the RHS corresponding rows misaligned (vertically). How do I adjust subtle vspace ...
2
votes
2answers
117 views

Replicate the Singular Value Decomposition figure in LaTeX

I have tried to replicate a portion of this matrix decomposition system in LaTeX, but I am unable to draw the first and the last matrices with rectangular boxes. This is what I could do until now, ...
1
vote
0answers
54 views

An 'equals to' statement to the side of your matrix using LaTeX

so I am using Sage and I am trying to get the statement {B_{old}}^{-1} = beside my matrix \[ \begin{pmatrix} 0 & 0 & 0 & 0 & 0 & 0 & -1 \\ 1 & {3\over10} & 0 & ...
10
votes
5answers
372 views

drawing a matrix with its minors

I want to create something like this: This should be a matrix and I want to consider its minors which are drawn by __|. I want to draw also a line from one minor to a place outside of the matrix to ...
2
votes
0answers
31 views

Matrix with line and matrix operations [duplicate]

I want to produce this matrix: For the vertical line I can use \begin{array}{cc|c} and for the matrix operation I use environment gmatrix from the gauss package. But I can't use these options at ...
0
votes
0answers
29 views

How to format elementary row operations? [duplicate]

How do you write the elementary row operations in LaTeX? How do you show the use of the operations? Please include an example of interchanging rows, multiplying rows by a constant, and adding ...
5
votes
1answer
68 views

matrix alignment with preceeding unary minus

I've never quite been pleased with the options for aligning matrices in TeX when there is a preceding unary minus in some of the rows (but not all). I'd like to implement an environment that ...
3
votes
2answers
116 views

Vertical lines spanning only certain rows in matrix

As you can see in the picture, there is an annoying extra vertical line I want to remove: the one in row 2 at the matrix's start. The code for that is: \begin{array}{|c|c|c|c|} ...
5
votes
1answer
69 views

How to create a block matrix with centered elements

everybody. I was trying to compile a block matrix whose first line has a part that should be centered in that part of the line. My closest attempt is the code: \begin{align} ...
5
votes
2answers
211 views

Isometric Tables in LaTeX

Can someone please help me with a simple LaTeX code to draw something like the attached picture?
2
votes
2answers
133 views

What notation is used to show that a variable is a matrix? [closed]

When a variable is a vector, it is common to put an arrow above the variable, shown bellow \vec{x} When a variable is a matrix, sometimes a capital letter is used to distinguish it from the ...
5
votes
1answer
207 views

Block matrix equation with dimensioning

I need to write following matrix equation in LaTex. The dotted lines shown need to be present in the structure but need not have colors (could as well be black). I have used it here only to show the ...
4
votes
1answer
83 views

Centering in matrices

I am building a big matrix within the which I have block matrices, which I want to indicate by boxes. My current state looks like this: $$\begin{matrix} \framebox[3.\width]{J}& \begin{matrix} ...
3
votes
1answer
104 views

Eqnarray nested matrices produces alignment error

I wrote the following equation array. \begin{eqnarray} w_{0} & < & 1 \\ w^{m}_{i} & = & \left \{ \begin{matrix} w_{0} & i = 0 \\ ...
2
votes
2answers
63 views

Alignment when writing complicated linear systems of equations

I have the following code which can generate pdf as the figure shows. However, it lacks some alignments I want. I knew there is systeme package which may be useful, yet I found it didn't work for this ...