Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [matrices]

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

5
votes
2answers
90 views

How to write dimensions below a matrix

I would like to write the dimensions of a matrix below the matrix itself, but I managed only to either: write the dimensions below the matrix with underbrace (see matrix A in my code) write the ...
1
vote
1answer
29 views

Summation of matrix elements / table cells

Using the following code \documentclass{beamer} \beamertemplatenavigationsymbolsempty \usepackage{verbatim} \usepackage{tikz} \usetikzlibrary{calc, fit, matrix} \begin{document} %begin matrix autofit ...
2
votes
2answers
53 views

representation of vector and matrix in latex

i'm working on my latex thesis and i want to represent this equation, matrix is upperCase letter with 2 lines under it, and vector just one line below, see the picture attached can someone help me ...
0
votes
0answers
12 views

What is the Q matrix when speaking about fixed effects estimation? [on hold]

Sorry to bring you pictures but I stumbled upon this piece of evidence for the fixed effect estimator that I can't seem to unhinge. I have two questions 1) what is the 'plim'-term? 2) what is the Q ...
5
votes
1answer
416 views

How to draw a nice diagonal matrix?

How to typeset a nice looking diagonal matrix? I find myself, once again, fiddling with phantoms and running raiseboxes to get an aesthetic result. This kind of micromanagement is bad practice, but ...
1
vote
1answer
62 views

Three matrices side by side error in LaTeX

I'm trying to align three matrices side by side in an equation with LaTex, and I keep getting many errors. I'm a beginner to LaTex so please don't send to a similar question because I'm confused about ...
1
vote
0answers
28 views

Alignment of rows in a diagram

For example, in the following diagram I want to allow the rows as in the picture below (i.e, so that m in the bottom row aligns with the top of the fraction it is adjacent to, and so that the top row ...
3
votes
1answer
24 views

Removing outer parenthesis in a diagram

When I try to remove the outer brackets in the following diagram, by removing the first occurrence of \begin{pmatrix} and the last occurrence of \end{pmatrix} I get the error misplaced alignment tab ...
0
votes
1answer
23 views

matrix with its minors highlighted [duplicate]

I have to highlight the ith row and jth column which are removed from a matrix to form its minor as depicted in the picture My try is this, but I don't know how to highlight.. \documentclass[...
2
votes
2answers
30 views

Renew arraystretch only inside matrix environment

I am using \renewcommand{\arraystretch}{2.5} in my arrays to produce nice tables. But this is affecting also matrix environments. Supposedly one can redefine the \arraystretch locally inside each ...
0
votes
1answer
25 views

Arrow pointing on two rows of matrix

How to create an arrow which points on two adjacent rows of matrix (as in picture)?
-1
votes
2answers
25 views

Writing matrices with a variable name coverin some rows and some columns inside the matrix

]1 How can I write matrix equations like as shown in the picture? I need augmented matrix with vdots and a variable name inside the matrix which covers multiple rows and columns of the matrix.
1
vote
2answers
38 views

Aligning matrices across examples

How can I align the two identical blocks in the following (the blocks consisting of rows with words in)? \documentclass[11pt]{beamer} \usepackage{pgfpages,amsmath,amssymb,mathtools,color, graphicx, ...
2
votes
1answer
25 views

Aligning fractions in a matrix diagram

The fractions at the top row of the first diagram below are not aligned (and the fractions of the bottom aren't either), as the expressions of the top rows are in the second diagram. How can I align ...
0
votes
0answers
19 views

Inserting an array into a diagram

Suppose I have a diagram of this form: \documentclass[11pt]{beamer} \usepackage{pgfpages,amsmath,amssymb,mathtools,color, graphicx, amsfonts, braket} \usepackage{subfig} \usetheme{Madrid} \...
0
votes
0answers
20 views

Creating a particular type of diagram [duplicate]

This question is a follow on from Diagrams in subequations I am trying to produce diagrams like those in the picture below. In particular, the top part of this style of diagram (above the word "...
0
votes
0answers
16 views

How can I add maths above and on the side of a matrix? [duplicate]

How can I write this: such that I can control the space between the matrix and the maths bits at the top and on the side?
5
votes
2answers
105 views

Matrices with same height in keynote

I am trying to write some matrices with latex in Keynote and I cant make them the same height. There are some answers to this problem but can't make them work in Keynote. The equation looks like this:...
0
votes
0answers
36 views

Can't find the right font for a matrix

For a school project I need to integrate a matrix in my document. The teacher says there is a specific font I need to use to indicate the matrix. She said something about using \mx{A} (A is the letter ...
0
votes
1answer
45 views

Matrices with negatives inside

If I have a 2x2 matrix, where one has strictly positive integer values and the other has negative integers in them, I've noticed that the size of the matrix changes a little (to accommodate for the ...
2
votes
2answers
75 views

How to correctly align and space in math mode?

Hello how can I correct this ? Here's my code. Thank you all Code: \chapter{Méthodes de différences finies} \section{Conditions initiales de Dirichlet} \subsection{Algorithme numérique} On ...
4
votes
1answer
72 views

How to decrease the space between the matrix elements and the dots in NiceMatrix Package?

I want to decrease the space between the vertical dots and the elements of my matrix. How can I achieve this? \documentclass{article} \usepackage{amsmath,amssymb,mathtools,nicematrix} \...
6
votes
2answers
424 views

'Given that' in a matrix

I am trying to create the following equation where I have n given that y where y must be split among two lines. This is the code I have so far (which will give me the big braces). \left\{ \begin{...
0
votes
1answer
46 views

How do I force two arrays to hold the same horizontal space?

In a previous topic (Why do horizontal matrices look different than multistory matrices?), it was asked why a vector holds a different horizontal space from what a matrix holds. One solution devised ...
4
votes
2answers
68 views

ConTeXt: Matrix inside startalign/stopalign changes specified column alignment

Example: \starttext \startformula \startalign[n=2,align={right,left}] \NC x \NC = a ~ long ~ sequence ~ of ~ terms \NR \NC y \NC = ok ~ left \NR ...
5
votes
2answers
226 views

Generating adjacency matrices from isomorphic graphs

Here are some isomorphic graphs and their corresponding adjacency matrices. I can draw the graphs with tikz. But I'm not sure the best way to draw the matrices. Is it possible to generate one from ...
1
vote
2answers
96 views

How to increase spacing between two rows in a large matrix? [duplicate]

Currently, here is what I have: \documentclass[11pt]{amsart} \usepackage{amssymb,latexsym,amsmath,amsthm,enumitem,hyperref} \usepackage{graphics,graphicx,multicol,tikz,pgfplots,tkz- euclide,relsize,...
2
votes
1answer
67 views

How to scale tikzpicture table?

I need to scale this table to smaller size, all together with color boxes. I was not able to do it with scale command. Any help? Thanks. \documentclass{IEEEtran} \usepackage[dvipsnames]{xcolor} \...
6
votes
2answers
178 views

Matrix using tikz package

I am working on my dissertation and I have no idea how I should do this in LaTeX. And the shading definitely is challenging. I have only been able to do this so far, I am still an amateur at it. \...
1
vote
2answers
62 views

How to place an arrow on top and to the right of a matrix

I am trying to create a matrix shown below but I want the left arrow to be on the right side of the matrix because I want to have the name of the matrix on the left side. Here is what I have: \[ ...
6
votes
1answer
123 views

Braces for block matrix

I have a block matrix S of dimension (Lm+n)\times (L+n)m But I think it is not written in a clear way for the reader. Do you have suggestions? this is the code I wrote so far (thanks to some ...
27
votes
2answers
1k views

Levi-Civita symbol: 3D matrix

During the current review of the tensors I have arrived at a page of Wikipedia where you can see the symbol of Levi-Civita in a beautiful three-dimensional matrix. I hope that nobody will be angry ...
3
votes
1answer
68 views

How can I force two rotated matrices to have the same size irrespective of content?

I have two matrices which are rotated 45 degrees next to each other. Unfortunately, they are different sizes, likely because one has two-digit numbers, the other one digit. How can I force them to ...
6
votes
4answers
402 views

How do I construct an nxn matrix?

I'm trying to create a large nxn matrix but I am unable to find a technique which will make it easier rather than doing it manually, any ideas?
5
votes
2answers
154 views

Table enclosed in curly brackets

I would like to enclose a table with curly brackets. I photoshopped an example here: The MWE of the table is here, please feel free to add packages etc. ` \documentclass[11pt]{article} \begin{...
4
votes
2answers
38 views

Is there a simple way to force matrix brackets to stretch according to phantom contents of `array` environment?

The output I get The output I want is the same except that the brackets of the Z_bus matrix should stretch to contain phantom content of array environment as follows Clearly, I can use \phantom and ...
0
votes
0answers
40 views

How to control the height of square brackets of matrix

Here is my code for creating a matrix: \begin{equation} \left [ \begin{array}{ccc} 1 & 2 & 3\\ 1 & 2 & 3\\ 1 & 2 & 3\\ ...
6
votes
1answer
85 views

(easy?) Matrix with wide blocks

I'd like to create a matrix like this: \documentclass{article} \usepackage{amsmath} \begin{document} $$ \begin{bmatrix} a & b' \\ b & D \end{bmatrix} $$ \end{document} but I'd like ...
6
votes
1answer
144 views

Numbers with a minus sign in a matrix not aligned with the numbers without minus sign [duplicate]

What should I do to get all the 1 with a minus sign (-) in front of them aligned with the other 1 and the 0 in those vectors? \documentclass[a4paper, 12pt]{book} \usepackage{amsmath} \begin{document} ...
3
votes
2answers
65 views

How to align left the matrix in bmatrix environment

In the following MWE, the A and B matrices are perfectly aligned. However, the matrix C is aligning itself towards the right. How to align it towards the left? \begin{multline} A= \begin{...
0
votes
1answer
57 views

Misplaced \omit. …\w{wk} & \w{jg} & \w{cl} & \w{rn}\& \w{cl} [closed]

I am using Qrrbrbirlbel's solution to build the confusion matrix as given in the figure. The problem is when extend the rows and column to 10 as given in the code it gives me the error as stated in ...
3
votes
3answers
198 views

Determinant of 3x3 matrix by cofactor expansion

please help me to create this in LaTeX:
1
vote
1answer
28 views

brackets inside matrix / matrices inside a matrix

I would like to make something that looks like this: I don't know how to get the brackets inside the matrix to line up in the right spots. I don't need them to be red; I just added that to emphasize ...
2
votes
3answers
38 views

Spacing in matrix entities

I will try to get something like in the picture below: I have tried a code but the spacing are quite large compared to the spacing in the picture \begin{equation} \begin{matrix} \xi_1 & = &...
1
vote
1answer
26 views

Align the column with minus in in bmatrix

I am struggling with aligning the bmatrix with the minus symbol - it should look like in the picture \begin{equation} \begin{bmatrix} X_1 \\ X_2 \\ \end{bmatrix} = - \frac{1}{\xi_{11}\,\xi_{22} ...
8
votes
1answer
739 views

How to encircle section of matrix in LaTeX?

I am currently working on a lab report where I have to explain the Gaussian Elimination Method for a matrix. As part of my explanation, I want to circle/oval portions of a matrix. Is there any way ...
4
votes
1answer
155 views

How to place a kinked arrow above a matrix?

I would like to achieve something like this: or optionally with a sharp kink: Is that possible? I stumbled across this post and some answers where tikz was used but wasn't able to adjust it to my ...
3
votes
3answers
209 views

How do I edit this matrix system of equations?

Is there a way to remove the right vertical line in the following matrix? \documentclass{article} \usepackage{amsmath} \begin{document} $ \begin{vmatrix} \alpha & -& \beta =180\\ \...
3
votes
2answers
53 views

smallmatrix using tikzpicture

I wish to use tikzpicture instead of smallmatrix, because the former offers better control for dots via this post. However, the code $\Z^4\!\xleftarrow{ \begin{tikzpicture}[baseline=(current ...
0
votes
1answer
56 views

Add upper brace on matrix with good alignement on each parameter

From this upper brace, I try to put a brace over the first 9 columns the 9 parameters below. I would like to align them with the 9 first columns of matrix, each one of this parameter aligned with each ...