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}.

0
votes
1answer
17 views

Having trouble regarding matrix

How can I draw this matrix? since I’m new to LateX, it is very hard for me.
2
votes
3answers
169 views

How can I reduce the size of matrix?

How can I reduce the size of below matrix? (i.e. this matrix is wide, i want to reduce the distance of entries.) \documentclass{article} \usepackage{mathtools} \usepackage{blkarray, bigstrut} % \...
5
votes
0answers
46 views

nicematrix \ddots has different performances in different documentclass

When I use \documentclass{article}, just like (no problem) \documentclass{article} \usepackage{nicematrix} \NiceMatrixOptions{transparent,nullify-dots} \newcommand{\underbracedmatrix}[2]{% \left(...
3
votes
2answers
64 views

Align many matrices and operations so it's more beautiful

I have the following matrices, I'd like to align them under each other more beautifully. Can anyone recommend a good way to do this? $ \left[\begin{matrix} 1 & 1 & 1 & 6z-2 \\ -1 & 2 &...
2
votes
2answers
26 views

Aligning an array with text beside it

I am trying to create a 'matrix' using the array environment. I have multiple of these lines each with text besides it of varying length. I would like to have the array aligned; however, in example ...
1
vote
1answer
13 views

How do we put labels to this matrix as shown in colors?

The code that I am currently using is below \begin{equation*} \mathsf{L} ~~=~~ \begin{bmatrix} 1 & 0\\ 0 & -1\\ 1 & 1\\ 1 & 1 \end{bmatrix} \end{equation*}
4
votes
2answers
99 views

How to get my matrix to fit inside the width of the text block?

New to LaTeX here. This is what I have so far: \documentclass[11pt]{article} \usepackage{amsmath} \begin{document} $$ A = \begin{bmatrix} 0 & \cos(\theta_{1})\sin(\phi_{1})\sin(\tau_{1}) & ...
5
votes
1answer
53 views

How to center multi column multi row environment in matrix

Using this I was able to create a big zero but how can I center it? I'm a bit lost on the horizontal space. How can I center the 0_{3 \times 3} in this matrix. My code: \documentclass{article} \...
1
vote
1answer
41 views

Align many matrices the best way possible?

It's my first assignment in linear algebra and working with matrices. How would you align matrices like below the best way? Code below: \newenvironment{sysmatrix}[1] {\left(\begin{array}{@{}#1@{}}} ...
3
votes
1answer
64 views

Alignment of matrices with annotations on the right side

I have a problem with aligning matrices with annotations on the right side. I need the annotations to show the operations I used. To show the operations I first used the gauss package. Unfortunately ...
2
votes
2answers
31 views

How to generate row vector command from this code

I found following code at Matrix in small size \documentclass{article} \usepackage{graphicx,amsmath} \newcommand{\colvec}[2][.8]{% \scalebox{#1}{% \renewcommand{\arraystretch}{.8}% $\begin{...
1
vote
1answer
74 views

Beautiful matrices in latex when having bigger equations (alignment) [closed]

I'm new to LaTeX and was wondering if there is a more beautiful way to have the matrices aligned than below? Below is a sample code from the picture above: \begin{alignat*}{2} &\!\begin{aligned} ...
2
votes
2answers
50 views

How to draw this special matrix with horizontal line and vertical line in it?

I have tried with blockarray like \begin{align*} B= \left[\begin{blockarray}{ccccc} a_{s_0} & a_{s_0+1} & \cdots &\cdots &a_{s_0+n}\\ %\begin{blockarray}{cccccc} %\begin{block}{ccccc|...
1
vote
1answer
27 views

Why left alignment not working

Here is my code \begin{align*} \underline{\mathbf{r}}_k = \left[ \begin{array}{ccc} &r_{k}^{} \\ &r_{k-1}^{} \\ &\vdots\\ &r_{k-I_1I_2+1}^{} \end{array} \right],%...
5
votes
4answers
356 views

How to write a column outside the braces in a matrix?

I would like to produce the following matrix : : My code is below which only produces the matrix without the additional column. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{...
2
votes
1answer
56 views

Is there a simple way to create a cross-shaped array in ConTeXt?

According to https://en.wikibooks.org/wiki/LaTeX/Mathematics#Matrices_and_arrays, the following code creates an array that has a cross-shape, with four items centered in each quadrant. \begin{array}{...
3
votes
2answers
335 views

How to get a single big right brace?

I am trying to make the right brace cover the whole matrix like the `\overbrace'. Is there a way to do this? \documentclass[reqno,12pt]{amsart} \usepackage{amsmath,mathtools,amssymb} \usepackage[top=...
1
vote
2answers
44 views

fraction of matrix

If we need an equation with matrix and fraction, the most evident code is L(z)= \frac{\bordermatrix{& & & i & & \cr & 0 & \dots & 1 & \dots & ...
5
votes
2answers
108 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
42 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
64 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 ...
7
votes
2answers
557 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
65 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
29 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 ...
4
votes
1answer
29 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
28 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
33 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
30 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
28 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
43 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
30 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 ...
1
vote
1answer
30 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
21 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
138 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
38 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
57 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
76 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
82 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
427 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
51 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
70 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
255 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
175 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
75 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
184 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
76 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: \[ ...
7
votes
3answers
173 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
69 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 ...