Questions tagged [matrices]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
45 views

How to Enhance an Existing Math Environment

I'm taking the next step in my learning of LaTeX and starting to explore the possibility of creating custom environments; however, the resources I've consulted don't mention how to create an ...
0
votes
0answers
34 views

Vectors overlap, how fix? [duplicate]

I am trying the following snippet \begin{cases} \begin{bmatrix}a \\ d \end{bmatrix} \\ \begin{bmatrix}a \\ d \end{bmatrix} \end{cases} the two vectors of which overlap. How can one fix this ...
4
votes
3answers
133 views

Insert a 2x2 matrix into a 5x5 matrix

I need to insert a 2x2 matrix evenly into the 4th and 5th rows and the 4th and 5th columns of a 5x5 matrix. My code needs tweaking. \begin{equation*} a_1= \begin{bmatrix} 1 & 0 &...
1
vote
1answer
34 views

How to add an underbrace to the part of the row vector? [duplicate]

My code is A = \left[\begin{matrix} 1&\underbrace{\begin{matrix} 1&\dotsb&1 \end{matrix}}_N \end{matrix}\right] and the outcome is but I want the ...
2
votes
1answer
57 views

Splitting correlation Matrix in 2 Tables

H! I have a correlation matrix of 14x14 variables - so quite big. If I insert my correlation matrix in Latex, and adjust the table to the page size with begin{adjustbox}{widt=\textwith}, the table is ...
4
votes
2answers
80 views

Error in LaTeX code for a Matrix

Can someone please find out what's the error in this code? \begin{equation} W(f_1,\dots,f_g):= \text{det} \begin{pmatrix} f_1 & f_2 & \dots & f_g\\ ...
1
vote
1answer
21 views

How to align matrix elements at a specific symbol?

I would like to align the matrix depicted in the MWE by the \sum symbol - I feel it's not very 'elegant'/readable in the present format... How could I accomplish that? Thanks in advance! \...
0
votes
0answers
30 views

Can't create multiline matrix with standalone?

I want to split matrix over two lines using align environment. But I couldn't compile source code with message ! missing \endgroup inserted.. I found out this works well on other class, such as ...
6
votes
2answers
399 views

How can I print this equation properly?

I am trying to print the following equation in an article H = \begin{pmatrix} 1 & x_{11} & \cdots & x_{1p} \\ 1 & x_{21} & \cdots & x_{2p} \\ \cdots & \cdots & \cdots &...
2
votes
1answer
41 views

pmatrix and vdots are not aligned between rows

Consider the following code to create a matrix \documentclass{svmult} \usepackage{amssymb,amsmath,amsfonts} \usepackage{mathtools} \usepackage{bm} \usepackage{tikz} \usetikzlibrary{arrows,trees,...
0
votes
1answer
78 views

$A$ with equation of more than one matrix

I need to write a matrix, that has a structure as in the attached picture.
0
votes
1answer
49 views

How to display the following matrix in texmaker? [duplicate]

I want to display the following matrix in texmaker. please suggest.
4
votes
1answer
159 views

How to draw 3d matrix using tikz [duplicate]

i want to draw a matrix like the pic below, i just don't know how to do it
1
vote
1answer
50 views

how to make a matrix small

how I can make this matrix small? \[ G=\dfrac{1}{k(c_{k}^{2}+...+c^{2}_{n-1})+1} \begin{bmatrix} 2(c_{k}^{2}+...+c^{2}_{n-1})+1 & -c_{k}^{2}-...-c^{2}_{n-1}& -c_{k}^{2}-...-c^{2}_{n-1}&.....
4
votes
3answers
141 views

Font size in \pmatrix: Elegant Summation in big Vectors

Is there a way to make this look more elegant? \documentclass{book} \usepackage{amsmath} \begin{document} \begin{equation} \begin{pmatrix} \sum_{j=1}^{q_{k}} \frac{\vec{e}_{k,j}}{b_{k,j} ...
2
votes
1answer
30 views

Multicolumn table format problem

I have been reading some very nice answers on this site on how to construct tables. I am showing below what I have written. \documentclass[11pt]{article} \usepackage{float} \usepackage{multirow} \...
0
votes
1answer
30 views

SVD Latex representation

How can I create the SVD representation as shown in the image using latex?
1
vote
1answer
24 views

Matrix offset to the right due to margin

I'm very new with LaTeX, so excuse my simple question. I'm writing an article document and I have specified a margin of 1.5 inches using \usepackage[margin=1.5in]{geometry} However, this leads to an ...
0
votes
1answer
53 views

Matrix with column vectors

My question is smiliar to Creating a matrix with column or row vectors as arguments: I would like to typeset a matrix by indicating just its column vectors. However the answers in the linked ...
3
votes
4answers
70 views

How to control space between rows in a matrix that has fraction elements

\documentclass{article} \usepackage{cite} \usepackage{amsmath} \begin{document} \begin{equation} \renewcommand\arraystretch{1.5} \begin{bmatrix} \dot{x} \\ \dot{y} \\ \dot{\theta} \end{bmatrix} = \...
4
votes
3answers
345 views

How to write the given block matrix

\begin{center} \[ P=\left[ \begin{array}{c c c c c c c c c c c} a & 0 & 0 & \dots & 0 & 0 & \dots & 0 \\ 0 & & & & &...
0
votes
1answer
43 views

Partition Matrices, merge two cells

I have the following code for a MWE: \[ D = \left[ \begin{array}{c|c|c} D_{1} & 0 & D_{2} \\ \hhline{-|-|-} D_{3} & & 0 \\ \hhline{~|~} \end{array} \right] \] This results in the ...
0
votes
0answers
12 views

Editing matrix, replacing delimeter

I want to remove the line(\vert) and replace it with nothing. How? I tried with \space, \centering, but it doesn't work. \documentclass{article} \usepackage{cancel,mathtools} \begin{document} $ \...
2
votes
2answers
31 views

Homogeneous spacing for matrix elements

can somebody tell me how to get homogeneous spacing between the elements of my matrix? Here is the code I'm using but it is not working as I was expecting. \documentclass[12pt]{scrartcl} \...
1
vote
1answer
21 views

Centered vertical dots inside pmatrix don't show when using `unicode-math`

I'm trying to use centered vertical dots in a pmatrix, as shown in this answer. However, when unicode-math is used, the \vdots don't appear inside a pmatrix, although they appear just fine in other ...
0
votes
2answers
56 views

Making matrix look sharper

How can I make this matrix look sharper or fancier? There must be a package to make it look better. Right now it looks like an old 80s TeX table. \documentclass{article} \usepackage{amsmath} \begin{...
1
vote
0answers
34 views

Matrix in footnote

I want to insert a matrix in footnotes, my paper has two columns and the footnote goes under one of the columns. How can I put the footnote under the whole page? This is my code, I'm writing in ...
0
votes
1answer
26 views

Missing $ inserted \begin{pmatrix} error

I am getting the "Missing $ inserted \begin{pmatrix}" error in the following code \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} %opening \title{} \author{} ...
4
votes
3answers
84 views

Complex matrices column alignment on sign

Background: I would like to improve my matlab function mat2lat(A): https://github.com/KasparJohannesSchneider/mat2lat/issues/1 Problem: For complex matrices, the alignment mode {c} doesn't look ...
1
vote
0answers
20 views

Matrix Norms notation [duplicate]

Im writing a paper on norms, we use two bars \|\cdot\| for vector norms and triple bars for matrix norms. The problem is that if I use |||\cdot||| the distances between the bars is different and that ...
1
vote
1answer
20 views

Issue with vector in subscript and question about wrapping matrices in parentheses

I have two questions I'd like to ask and get feedback on. First, I'm currently trying to write an equation into latex but for some reason, the formatting isn't spacing the way I want it to. I want ...
2
votes
3answers
98 views

Labeling the rows of a matrix with letters

How can I label the rows with A B C D E letters instead of numbers? I tried with \alph but it did not work. \documentclass{article} \usepackage{xcolor} \usepackage{blkarray, bigstrut} \usepackage{...
4
votes
3answers
183 views

Increase size of square brackets

How can I increase the size of the brackets? They are not enclosing the whole matrix. \documentclass{article} \usepackage{blkarray} \begin{document} \begin{figure}[htbp] \begin{spacing}{0.5} \...
3
votes
2answers
42 views

Aligning and spaces for negative numbers and fractions in a matrix

As the title says, when I am writing my code the fractions are a little too close to eah others. \documentclass{article} \usepackage{mathtools,amsmath,amssymb,amsfonts} \begin{document} \[ \left(...
4
votes
1answer
81 views

Create projection inside matrix - tikz 3dplot

I can create two nodes in tikz-3dplot, and create a projection like view, like this : But how to create view like this(the right one- only those projection lines) ? I have created the basic, I just ...
0
votes
0answers
52 views

Dashed lines in matrix math without Tikz

Is there a way to do dashlines as separators in matrix math environment without Tikz package? I tried to use arydshln with {array}{c:c} but generates error. I have to do this This is the code I used ...
2
votes
1answer
29 views

How to vertically-centered align images and characters in pmatrix?

How can I vertically-centered align the comma below with the images? \documentclass{article} \usepackage[demo]{graphicx} \usepackage{amsmath} \begin{document} \[ \begin{pmatrix} \...
0
votes
1answer
54 views

How can I draw those line joining matrix

I'm trying to draw something like this : I have created matrix normally, from here : \begin{bmatrix} x_{11} & x_{12} & x_{13} & \dots & x_{1n} \\ x_{21} & x_{22} &...
0
votes
1answer
15 views

Change font color of whole matrix including the brackets of matrix

I want to change the font color of complete matrix including the matrix braces to red color. The MWE is given below: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation}\...
1
vote
2answers
140 views

Matrix multiplication

I have followed the suggestions in this thread to place the delimiters before and After all arrays (also tried matrix} but my file won’t compile until I delinit each matrix which doesn’t give me the ...
0
votes
0answers
39 views

Vertical lines inside matrices disappear when exporting to pdf

All the vertical lines inside the matrices disappear when i export to pdf. Any suggestions?
1
vote
2answers
60 views

A question about uparrow in a matrix

The following code displays a matrix that has the value of 1 in the cell (i,j) and the value 0 in all the other cells. The code shows the rightarrow with the label "row i" and I want to add an uparrow ...
5
votes
4answers
547 views

LaTeX matrix formatting

I am trying to create something similar to the below image. I have something, but my formatting is a little off. How can I correct the formatting and also add the W1, W2, Wn and D letters on top (not ...
2
votes
1answer
38 views

Aligning vector elements to rows of matrix (vertical alignment) in matrix-vector multiplication

When the matrix is complex and the vector is simple, the output does not look good: Code: \begin{bmatrix} \displaystyle\sum_{i=1}^M{(x_i)^2} & \displaystyle\sum_{i=1}^M{(x_i)} \\ \displaystyle\...
1
vote
0answers
35 views

Why do matrix brackets look strange when using package unicode-math?

Compare this: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \begin{bmatrix} a & b \\ c & d \\ e & f \\ g & h \end{bmatrix} \...
-1
votes
1answer
50 views

Matrix with arrows [duplicate]

How can I create such a matrix with arrows in Latex?
8
votes
3answers
286 views

Matrices upper triangular alignment

I was writing an upper triangular matrix but due to large entry was unable to get in a good view. \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath,mathtools} \...
5
votes
2answers
119 views

How to circle together certain entries of a matrix?

I am looking for a way to circle together the red entries of the following matrix: $$ \begin{matrix} \textcolor{blue}{[0,1]} & \times & \textcolor{blue}{[0,1]} & \times & \...
2
votes
1answer
33 views

How to align words outside matrix? [closed]

It is difficult to describe my question, so I give the picture which shows the difficults: Some words are outside of the matrix, both rows and columns. How to align them? It is better to have ...
2
votes
3answers
41 views

smallcaps in a matrix, \\ coupled with foreach loop

I wanted to make a command which would put all of my text in smallcaps and in a matrix. This is \fmold below. This gave me an error, prompting me to make a foreach loop as seen in \smallcapsify and \...