Tagged Questions

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

learn more… | top users | synonyms (1)

0
votes
0answers
21 views

Controlling delimiters in matrices typeset with TiKZ

This question is directly related to Loop Space user's answer to question Broken matrix - gaps in brackets, in which an alternative TiKZ method to amsmath matrix typesetting is provided. The ...
2
votes
0answers
13 views

How to cross a column in a matrix! [duplicate]

I need some help. I need to draw horizontal lines all across row 1 and 3, and vertical lines all across columns 2 and 4. I'm aware I can use \makebox[0pt][l]{\rule[0.1cm]{0.19\textwidth}{0.7pt}} to ...
0
votes
2answers
32 views

How to resize a matrix in beamer

Currently I am having problem in resizing the matrix. The following is the code: \begin{frame} \frametitle{XXX} $$\small\begin{pmatrix} I_{\frac{k}{2} \times \frac{k}{2}} & 0_{\frac{k}{2} ...
1
vote
1answer
240 views

what is the latex command for this notation

could anyone tell me what will be the latex command for this? I am very much confused, I am not even comfortable in matrix writing while typing latex I always copy paste the matrix command to write a ...
2
votes
2answers
33 views

How do I use \bmatrix in a subfigure?

I am trying to put two matrices next to each other with the same caption, but I am having trouble using \bmatrix in the subfigure environment. Here is the code of what I am trying to do: ...
2
votes
1answer
23 views

Multiple line matrix equations

I am trying to fit a rather large matrix equation into a document, but it is so large that I cannot fit it onto a single line. Moving the end of the equation onto a new line appears to be the only way ...
2
votes
1answer
51 views

How can I organise this matrix in beamer?

I have three vectors that should be in same line in this frame. I can not do it. Could you help me. The MWE is \documentclass{beamer} \begin{document} ...
3
votes
3answers
250 views

The matrix is cut off

I wrote a long matrix in LaTeX \begin{equation} \rho H = \left(\begin{array}{ccc} \rho_{11} \hbar \omega_{1} +\rho_{13} \hbar \Omega_{p} cos(t\omega_{p}) & \rho_{12} \hbar \omega_{2}+ \rho_{13} ...
2
votes
0answers
73 views

Column Space and Null Space of a Matrix [closed]

What are the notational best-practices for typesetting the column space and null space of a matrix A? Let's see how some of the different options look: Column Space: $col(\mathbf(A))$ ...
1
vote
1answer
36 views

Wrong (too much) vertical space above \vdots in small matrix

If one uses \vdots in a smallmatrix-environment the vertical spacing above the dots is too large. It is the same spacing as in a normally sized matrix-environment. Minimal working example: ...
3
votes
1answer
40 views

how can I get the thicker x symbol like the following picture?

I try the \boldsymbol{\times}, but it doesn't look right.
4
votes
1answer
55 views

Very strange result while writing a trace of matrix

My Jacobian matrix evaluated at the equilibrium is denoted by J_E. I typed for its trace as tr\textit{J_E}. And the result is very strange. tr appears good but \textit{J_E} part is unlimitedly ...
2
votes
1answer
256 views

Matrix in Latex

I am new to Latex, and I have been trying to get the matrix of following form [x11 x12 x13 . . . . x1n x21 x22 x23 . . . . x2n . . . . xd1 xd2 xd3 . . . . xdn] ...
0
votes
0answers
14 views

bmatrix with individual column alignment specifier [duplicate]

I know that I already found this, but I am not sure where, so I ask it here. How can I individually specify the number and alignment of a bracket matrix using bmatrix? \documentclass{article} ...
6
votes
2answers
78 views

Insert matrix into \subsection{}?

I was trying to insert matrix into a \subsection{}: \subsection{Suppose $X= \begin{array}{cc} 1 & 2 \\ 3 & 4 \end{array}$} This gives me an error: ! TeX capacity exceeded, sorry [input ...
2
votes
1answer
39 views

rotate box in reverse inside a rotate box ? possible?

I need to make brackets of various kinds stretch with the length of the argument below and above. They require rotation of text inside a rotated matrix. For example, I am trying to make a round ...
2
votes
1answer
40 views

alignment of different elements inside and outside matrix in tikz

I am facing issues in getting the different elements of the following tikzpicture at correct positions. I think the problem arises because the width of elements within the matrix differs. ...
6
votes
5answers
362 views

Easier or better way to draw 1d array

I'm trying to reproduce the following figure, and was wondering if there was a simpler way. \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \def\leftbracket{[} \def\rightbracket{]} ...
1
vote
1answer
41 views

Why pmatrix in a description list break the document flow?

The code to provide the MWE \documentclass{article} \usepackage{amsmath} \usepackage[brazil]{babel} %\usepackage[latin1]{inputenc} \usepackage[utf8]{inputenc} % UTF-8 encoding is recommended ...
2
votes
1answer
61 views

Insert a Matrix in a Latex Table

How can I include a matrix as a value in a Latex table? For example, in the code provided below, I need C to be written in matrix format with the brackets. @code \begin{table}[h] \begin{tabular}{c c ...
0
votes
0answers
42 views

I want to write a matrix like the one in the picture [duplicate]

I need to write a matrix like this. I don't know how to add those letters outer of matrix. I tried ``` \begin{equation*} \begin{split} %% letters %% matrix body \end{split} \end{equation*} to ...
1
vote
2answers
63 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
43 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
68 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
114 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
117 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
37 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
204 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
97 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
409 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
46 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
104 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
174 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
131 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
97 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
329 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
170 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
43 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
144 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
36 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
39 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
103 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
313 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
89 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
61 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
61 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
125 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
547 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
100 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
130 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 ...