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

learn more… | top users | synonyms (1)

3
votes
1answer
55 views

bmatrix no new row

I use: \[ M= \begin{bmatrix} 1 & 2 & 3 & 4 & 5\\ 3 & 4 & 5 & 6 & 7\\ \end{bmatrix} \] and as a result i have only one row. 1 is combined with 3, 2 with ...
10
votes
3answers
256 views

How to create vertical and horizontal dotted lines in a matrix?

Similar to this question, I am trying to output a similar matrix with dotted line instead of dashed line. Is there anyway to do this? I also try to use these three packages: ...
1
vote
1answer
51 views

How to create elegant stripped regions in matrix along with numbering of the rows and columns

I want to create a matrix that will consist of regions with stripped lines (so as to denote that it is full banded) and other regions that will be all zero. I have seen some rows & columns ...
2
votes
1answer
32 views

Overbraces hovering too far above matrix for some reason?

I have a matrix with two overbraces above it but they are not directly above it, there is a fair amount of space between the braces and the matrix and I can't see why it is happening. ...
2
votes
0answers
36 views

Need to split right bracket at side of matrix into three smaller brackets [duplicate]

To the right of this matrix I have a big right curly bracket with the text "2m terms" that spans the height of the matrix. I need to replace this right bracket with three smaller ones that together ...
2
votes
1answer
33 views

Need to represent information about a matrix, attached image showing what is needed [duplicate]

The following matrix is of size $10 \times 10$, however it is representing an $m \times m$ matrix. Hence I need to signify that the first five columns represent terms $0$ to $\frac{m}{2} - 1$ and the ...
1
vote
0answers
20 views

Last element in each row of a matrix getting pushed to next line [duplicate]

The following matrix is not displaying all elements in each row on the same line, the last element in each row is getting pushed to the next line. If I delete the last element then the matrix displays ...
3
votes
3answers
127 views

Centering a matrix in a figure?

I have a matrix that I would like to be centered in the middle of the page, however it is showing up left-aligned. \begin{figure}[ht]$ \centering \begin{bmatrix} 0 & C_l ...
5
votes
2answers
44 views

Giving two matrices the same width

I've got two matrices, were one is an ordered pair (a point) and the second one is a rotation matrix below that. How do I get them both to be the same width? I have two sets of parentheses and I ...
0
votes
0answers
34 views

Get a large 0 in a diagonal or triangular matrix matrix [duplicate]

I am interested in creating a matrix that is diagonal (or triangular even) that has a large 0 below the diagonal. Is there a way that I can create a matrix that has entries on the diagonal and then ...
6
votes
3answers
179 views

Matrix decomposition dimensions diagram

What's the easiest way of making diagrams depicting matrix dimensions such as the following? I can do it with simple subscripts, but I like the visual effect that these diagrams give.
3
votes
1answer
53 views

Problem with pmatrix

I'm trying to use pmatrix as follows: \begin{equation}\label{Eq.11} J = \begin{pmatrix} \frac{\partial c_{1}(t+1)}{\partial c_{1}(t)} & \frac{\partial c_{1}(t+1)}{\partial c_{2}(t)} & ...
4
votes
4answers
249 views

Big matrix in latex

I have a big matrix which exceeds the width of page, how can I fix this problem?
5
votes
5answers
147 views

Split a \bmatrix in two line

Code \documentclass[a4paper,twoside,12pt]{book} \usepackage[utf8]{inputenc} \usepackage{amsmath} $\bm{\mu^*}$ = \begin{bmatrix} \begin{split} 17.0716 & 21.3746 & 31.2462 & 34.2847 & ...
1
vote
0answers
38 views

Matrix creating “missing \item” error [closed]

I don't even have an enumerate nor an itemize in my document, but I'm getting a message that says "! LaTeX Error: Something's wrong--perhaps a missing \item." I've searched here and elsewhere, and ...
1
vote
0answers
15 views

Problem with matrix (too many alignment tabs) [duplicate]

I can not see any problem here. I guess that some problem with encoding or end of line could be the reason. See the image. The code. \documentclass[11pt,a4paper]{report} ...
3
votes
2answers
52 views

How can I have a brace on the left and the top of a matrix without overlapping?

Consider the following code: \documentclass{article} \usepackage{amsmath} \usepackage{rotating} \begin{document} \begin{align*} \rotatebox[origin=c]{90}{$n$ ...
6
votes
2answers
108 views

Vertical spacing in matrix environment : how can I have the same?

Here's my problem : I'm trying to write a Jacobian matrix as a product of two other's, but the result is wrong because they don't have the same height. Here's my code : \documentclass[11pt]{book} ...
4
votes
2answers
39 views

Array within Align*

LaTeX fresh beginner here. Using TexStudio. In the second row of an equation array (using align*), I am trying to multiply a row vector by a column vector, using the array command. Apparently the ...
4
votes
3answers
142 views

Making size of a 4x4 matrix that consist only 2 parameter of 2x2 matrix to be same size as 4x4 matrix

From the picture below, both are supposed to be 4x4 matrices, but I want to express the first one with 2x2 matrix within 2x2 matrix where the J1 and J2 are 2x2 matrices while the 0 is 2x2 zero matrix. ...
2
votes
2answers
93 views

Vertical space between matrices

I am writing some lecture notes in Econometrics and I want your advice on how to insert some vertical space between two matrices so the result will be easier to follow. Here is the minimal example: ...
5
votes
3answers
55 views

Making matrix elements larger vertically

Currently I have a matrix like this: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \nabla\Psi \times \mathbf{\hat{\theta}} / r = \begin{pmatrix} ...
5
votes
2answers
38 views

vdots in between of two columns

I am trying to make a matrix like the following: but I am not sure how it is possible. since \vdots add 3 dots for each column, I try to do a hack like this: \begin{equation} \label{eq:lsq3} ...
3
votes
2answers
119 views

Issue with \\ in custom command

So I'm trying to make my own command to make matrices less painful My current command is: \newcommand{\mat}[2]{ \left(\begin{array}{#1}{#2}\end{array}\right)} with the intention to use it as: ...
3
votes
2answers
53 views

is it possible to add dashed lines between rows/column of pmatrix from amsmath?

I wish these packages from amsmath have more options! Is there a way to add a macro to add dashed lines between rows and columns for a matrix typeset using pmatrix? Similar to what is being asked ...
0
votes
1answer
123 views

Compilation problem with tikz diagram

As I said, I'm writing math books for school; one of them is about matrices and I have several problems with it. It's a big code, so I'm trying to summarize it: Problem with TikZ matrix: When I ...
4
votes
3answers
90 views

Equal spacing in matrix

I'm trying to create a matrix that has equal spacing between each of the columns, but so far I have not been very succesful. The code I'm using right now is \documentclass{article} ...
0
votes
1answer
66 views

Blocks in matrix [duplicate]

I am looking for something that looks like: Does anyone have an idea as to how to implement this?
7
votes
3answers
216 views

Writing a matrix over two lines

I want to write a big matrix and I want to write it in two lines like the picture but I cannot find the way!
11
votes
3answers
227 views

Avoiding overlapping superscripts and subscripts in matrices

I was working on some calculus today and tried to typeset a matrix of partial derivatives and ran into some trouble. Here is my code: \documentclass{minimal} \usepackage{mathtools} \begin{document} ...
4
votes
2answers
129 views

Matrix color blocks

I am looking to produce a matrix multiplication where one of the matrices consists of coloured blocks. Much like: Is there any way to produce something like this in Latex?
9
votes
4answers
331 views

Squares in Matrix

I would like to write a matrix equation, where the matrix contains equally sized coloured blocks on the diagonal. Something like: Does anyone have any idea how to go about this?
3
votes
4answers
69 views

Alignment of entries in matrix

I have this pmatrix (amsmath package): \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{pmatrix} \frac{a}{b} & \frac{a}{b} & 0 & ...
1
vote
1answer
32 views

Is there any way to get something like pmatrix with customizable grid lines between cells? [duplicate]

In the document I have to describe a series of transformations, made with a matrix. Each transformation works only on 2x2 or 1x1 block, so I want to visually select this block in the matrix like this: ...
4
votes
2answers
77 views

Matrix or Table with uneven number of columns

I want to achieve something like following: Is there a way to achieve this in latex? Thanks for your help.
2
votes
0answers
40 views

Is there a shorthand for matrices that doesn't use an environment [duplicate]

I understand that environments are very nice where the content is complex. But for simple cases, the \begin and \end and duplication of the environment name gets quite wordy and dominates the actual ...
4
votes
2answers
57 views

Problems Using AVM package for LFG structures

I am trying to draw LFG f-structure matrices using the avm package (https://www.essex.ac.uk/linguistics/external/clmt/latex4ling/avms/). For some reason my avm objects do not respect the \\ command, ...
2
votes
1answer
47 views

Alignment of Matrix Equations

I want the code below to appear in one line but the last array (the transposed one) appears on the line below. What should I do? \begin{equation} X'X=(V_r,V_{p-r}) \[ \left( \begin{array}{cc} ...
7
votes
1answer
68 views

Recursive block matrix

I am currently writing a document in which I need to create a matrix that looks like the picture below. What is the shortest and easiest way to do so?
7
votes
2answers
81 views

Commutative diagram with matrices as objects

I would like to create a diagram which has matrices as objects and arrows between these matrices. In particular, I'd like to have four matrices, two matrices in the upper row, and two in the lower ...
2
votes
0answers
41 views

Labelling Columns of a Matrix [duplicate]

I have a 3-by-3 matrix. I want to label the columns as R, E, and D for instance. How can I achieve this in LaTeX? I am using $$ ... $$ environment for writing this matrix.
10
votes
3answers
251 views

How do I make a small pmatrix?

I want a small matrix but the only command I can find is \smallmatrix which leaves the brackets out. Is there a simliar one that includes brackets?
0
votes
0answers
18 views

Centering Two Matrices and Putting Them Side By Side [duplicate]

Here is the portion of my code that is rather bothersome: \begin{center} \begin{matrix} E_1 \\ E_2 \end{matrix} \begin{bmatrix} 1 & h & 2 \\ -5 & ...
6
votes
4answers
159 views

Side to side sum+product of matrices

I have been trying to write these matrices which are the results of a cointegration problem. However, I'm struggling to write down the second member of my matrices. As you can this is my code: ...
4
votes
2answers
66 views

Vertical Alignment of Matrix Cells

In the equation below, I would like to have the horizontal dashed lines that seperate different cells of the matrix to be vertically aligned. Furthermore it would be nice if the square brackets of ...
9
votes
2answers
153 views

How to add equations on top of arrows?

I have the following matrix: $$ \left[ \begin{array}{ccc|c} -4&2&-2&10 \\ 1&0&1&-3 \\ 3&-1&1&-8 \end{array} \right] \sim $$ I want to have something like this: ...
3
votes
1answer
82 views

Highlighting in tabular environment

I am trying highlight a row of matrices in a tabular environment. However, the left brackets of the matrices are gone. And I don't know how to fix this. In addition, how can I highlight 2 elements ...
8
votes
3answers
166 views

Align matrices problem

I have an equation of matrices and I want to align the dimensions of the matrices below the equation of matrices. However, I produce something very ugly. Can someone advise how to make it look better ...
4
votes
2answers
182 views

Help me input a column vector

I'm trying to input an arrow vector (a column vector, see the picture) in an align environment, but it reports an error. Can someone show me the TeX code of it in an align environment?
1
vote
0answers
110 views

Bold bracket row vector/matrix

i want to define a matrix-vector product, which is defined something like this: \left[\begin{array}{cccc} A & B & C & D \end{array}\right] \left[\begin{array}{c} u \\ v \\ w \\ y ...