Questions tagged [matrices]

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

Filter by
Sorted by
Tagged with
2 votes
2 answers
276 views

How to draw a hierarchical matrix pattern?

How to draw a hierarchical matrix pattern like this one (using TikZ or not)? And how to add a little square matrix between the product between the two retangular matrices? Is it possible to create a ...
jvictormata's user avatar
5 votes
2 answers
112 views

What are all the possible codes for the matrix \llbracket, \rrbracket and \llparenthesis,\rrparenthesis?

1. I am interested in the matrix: To make this matrix, I am using the following code (the full document): \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{stmaryrd} \...
Alezig's user avatar
  • 182
2 votes
2 answers
191 views

Matrices inside a matrix, with only text in the inner matrices

I want to draw a big matrix as an 8 by 8 to represent the combination of two HMMs. How do I go about it?
Cutie's user avatar
  • 45
0 votes
3 answers
65 views

How can I remove the extra vertical space above and below this matrix?

I have written the following code: \documentclass[a4paper,twoside,12pt]{article} \usepackage[margin=1cm]{geometry} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage{sansmathfonts} \...
Federico's user avatar
  • 113
2 votes
1 answer
28 views

How do you make the brackets of a row matrix the same boldness or thickness of a standard MxN matrix?

I have the following code: \begin{align*} \begin{cases} \dot{\mathbf{x}} = \begin{bmatrix*} \phantom{-}3 & -4 & \phantom{-}2\phantom{-} \\ -2 & \phantom{-}0 & \phantom{-}1\...
mrwillparker's user avatar
0 votes
0 answers
25 views

How to create (dimensionally) appropriately sized boxes representing matrices in LaTeX [closed]

I came across a particularly nice matrix representation while reading an online document. I've been trying to search how replicate it, but I have had no success. Does anyone know how I could write ...
Clarent's user avatar
4 votes
1 answer
189 views

Making overlapping submatrices

Is there anyway I can make a matrix like this?: Yes, that looks strange, but I assure you I actually need this. The "column" and "row" numbers are actually some sort of physical ...
Nikolaj's user avatar
  • 143
4 votes
4 answers
110 views

Jordan normal form with mathematical symbols

I would like to make a Jordan normal form, like this: \documentclass{article} \usepackage{amsmath} \usepackage{array} \begin{document} \[ \newcommand{\?}[1]{\multicolumn{1}{c|}{#1}} \left(\begin{...
Fynn13's user avatar
  • 43
4 votes
2 answers
117 views

A function to extract a submatrix from a matrix

Is it possible to create a function to extract a submatrix from a matrix?, for example \[A=\begin{pmatrix} 5 & 0 & 0\\ 0 & 2 & -5\\ 6 & 1 & -2 \end{pmatrix}\] ...
Zaragosa's user avatar
  • 561
8 votes
4 answers
895 views

What are all the possible codes for {{A\\B}}?

I am interested in the matrix: To make this matrix, I am using the following code: $\left\{\!\!\!\left\{\begin{array}{l} A \\ B \end{array}\right\}\!\!\!\right\}$ What are other possible codes to ...
Alezig's user avatar
  • 182
1 vote
1 answer
53 views

How to make a matrix with \llfloor and \rrfloor and how to make smaller distance between two curly brackets?

I am working on brackets. 1) I want to make a smaller distance between curly brackets like this $\{\!\!\{A, B\}\!\!\}$ in equation \begin{equation} \left\{\left\{\begin{array}{l} A \\ B \end{array}\...
Alezig's user avatar
  • 182
2 votes
3 answers
87 views

Why is the alignment of ordered list messed up by default and how to fix it?

I was recently trying to form a table inside an ordered list but, there's a small indent in the list with the table that's driving me crazy. Below is the code snippet- \documentclass[12pt]{article} \...
SilianRail's user avatar
0 votes
1 answer
66 views

How to draw a sparse matrix pattern (using TikZ or not)?

I would like to draw sparsity patterns with overlapping blocks and at the same time be able to write operations in the picture like in the figure below:
jvictormata's user avatar
1 vote
0 answers
41 views

Matrix without ams package [duplicate]

I would like to render matrices without using any of the amsmath stuff. How can I do that? Would be good to have some examples.
Bhanat's user avatar
  • 69
-1 votes
2 answers
82 views

Draw a table with arrows in Latex [closed]

I want to draw this table in Latex please help me.
saleh din's user avatar
4 votes
3 answers
165 views

increase space between delimiter and adjacent column in matrix

Suppose I have the following simple matrix, constructed in the usual way using bmatrix: Anal-retentive editor asks if the spacing between the delimiter and the adjacent column can be increased for &...
Johnny Canuck's user avatar
2 votes
1 answer
90 views

Align elements inside a matrix

How can I improve the alignment inside this matrix equation? My Tex code is \begin{equation} \begin{bmatrix} d\varepsilon_v\\ d\varepsilon_q \end{bmatrix} = \left[ \begin{matrix} \dfrac{1}{K^{'}} &...
Chris S's user avatar
  • 23
8 votes
3 answers
273 views

Why does the "\left [" partially disappear when I color a row in a table? But [ does not disappear

The problem is shown in the picture below: the tall left-hand square brackets that should be produced by \left[ and \begin{bmatrix} vanish. The code is as follows \documentclass{article} \usepackage[...
Darkhomo Van's user avatar
0 votes
0 answers
36 views

How to insert a big (28 x 28) matrix in latex?

I'm trying to fit a 28 $\times$ 28 matrix in the page but it's not setting in page. The rows are taking two lines to come. Is there any way to put a matrix like this?
Harshdeep Chhabra's user avatar
3 votes
1 answer
84 views

How to put left brace in nicematrix?

I want to have a matrix, where on the left side I have left brace with n written on it. But the current code I have does not produce the desired result. The left brace is not drawn due to some issue ...
pixel's user avatar
  • 1,316
1 vote
1 answer
61 views

How to draw matrices with lines and side braces? [duplicate]

I want to generate something like in the figure below. I have currently the following but is not complete as you can observe. Any idea how to do this? \documentclass{article} \usepackage[utf8]{...
pixel's user avatar
  • 1,316
3 votes
2 answers
193 views

Lines inside Array

I want to create a line inside an array (for a matrix), among which what I have created is as shown below. (I used \usepackage{hhline} and \usepackage{arydshln}) \[\small{\left [\begin{array}{cc|c} ...
Wildabandon's user avatar
0 votes
2 answers
103 views

Defining a new command shortcut for matrices

Currently, I am able to make a command shortcut that produces a matrix given a fixed amount of arguments. For example, the command \newcommand{\MAT}[4]{\begin{bmatrix} #1 & #2 \\ #3 & #4 \\ \...
Dee's user avatar
  • 103
2 votes
1 answer
46 views

Matrix vertical space in top row when using \linespread{}

\documentclass{article} \usepackage{lipsum} \usepackage{amsmath} \linespread{3} %\renewcommand*{\arraystretch}{0.85} \begin{document} \lipsum[2] \begin{equation} A = \begin{pmatrix} 1 & 2 \\ 3 &...
17tmh's user avatar
  • 91
-1 votes
1 answer
83 views

How can I transform this table into Latex?

I am struggling a lot to adapt this figure from Sheppard & Barnes (1990) into LaTeX: What do you suggest? :)
Gabriel Zaffari's user avatar
3 votes
3 answers
408 views

Aligning matrices in a nice way

Can the two matrices generated using the following code, be aligned more nicely? In this code, the left parenthesis of two matrices is aligned. Is it possible to make the top matrix lie around the ...
Rakesh's user avatar
  • 153
0 votes
2 answers
39 views

How to scaling the equation in math mode

Note that we cannot use the /small to the math mode. I want use the /resizebox, but it is not work with some environment. For example LaTeX editor show that it is a wrong code by the color. However, \...
HH D's user avatar
  • 3
1 vote
1 answer
47 views

Goldilocks size for matrix (between pmatrix and smallmatrix)

I would like to find a way (ideally a command like \begin{medmatrix}) to make a matrix halfway between the size of \begin{smallmatrix} a& b\\ c& d \end{smallmatrix} and \begin{matrix} a& ...
Pulcinella's user avatar
4 votes
2 answers
215 views

Summation operator issue

I need to write a summation operator inside a matrix. To achieve this, I'm using the code, \begin{pmatrix} \sum_{j+k \geq 2} \frac{1}{j! k!} a_{jk}r^j w^k \\ \sum_{j+k \geq 2} \frac{1}{...
Herr Schrödinger's user avatar
0 votes
1 answer
52 views

How to write a multiline matrix equation

So basically I want to write these two matrices equations but in only one referenced equation. I have the following code: \begin{equation*} \label{eq:matrices_estado} \begin{bmatrix} \Dot{x}_1\\ ...
Isaac's user avatar
  • 3
0 votes
1 answer
64 views

Visualizing QR factorization with drawmatrix

I am using the drawmatrix package and I would like to illustrate the following picture This is my attempt \documentclass{article} \usepackage{drawmatrix} \usepackage{amsmath} \usepackage{amssymb} \...
Oromion's user avatar
  • 362
-1 votes
3 answers
84 views

Help me for write this matrix [closed]

I want to write the attached determinant in latex but I can't. Can someone help me ? Thanks in advance.
Matmat81's user avatar
1 vote
2 answers
112 views

Help formating a matrix

I want to add the labels of the right side and bottom (строка столбец), like shown in the following picture: This is the code of my current matrix \begin{equation} T_{i j}(\varphi)=\left[\begin{...
Maroon Racoon's user avatar
3 votes
1 answer
151 views

Labelling a matrix using a brace in latex

Hey, I want to add two braces as labels for a matrix. I am able to add the top brace label "r". But when I add the bottom "m - r" label, it becomes branched. Here's my code in ...
JustAnAveragePerson's user avatar
3 votes
1 answer
87 views

Coloured half lines in a matrix

I was wondering how I could create this matrix in LaTeX: I know how to do the matrix part but my question is the lines, how can I make them stop in (1,1), (2,2) and (3,3)?
Ravinala's user avatar
4 votes
3 answers
509 views

Typing a specific type of matrix

I am looking to accomplish the following: So far I have the following code but it's just not quite right \documentclass{article} \usepackage{amsmath} \begin{document} \left( \begin{matrix} \nu+\...
Celepharn's user avatar
2 votes
2 answers
146 views

LaTeX command for block diagonal matrix

The code: $$[T]_{\beta}=\begin{bmatrix} c_{1}&&\\ &\ddots& \\ &&c_{1} \end{bmatrix} $$ I am trying with this code but ended up having a normal diagonal ...
RIPAN DAS's user avatar
2 votes
1 answer
62 views

Nicematrix and aligned math

The following document \documentclass{article} \usepackage{nicematrix,mathtools} \begin{document} \begin{equation*} \begin{split} \alpha^{d+i}_i &=\begin{...
Bubaya's user avatar
  • 2,149
4 votes
3 answers
331 views

Un-italicising entire row of matrix

I've got a matrix like: \documentclass{article} \usepackage{amsmath} \setcounter{MaxMatrixCols}{15} \begin{document} $\begin{bmatrix} I & L & i & k & e & t & h & e & H ...
Lamb Sauce's user avatar
2 votes
3 answers
365 views

How to make text vertical in a confusion matrix?

I would like to modify the confusion matrix shown here: I need to make the words vertical, this is the code: \newcommand\MyBox[1]{% \fbox{\parbox[c][2cm][c]{2cm}{\centering #1}}% } \...
Thamer Althubiti's user avatar
3 votes
3 answers
184 views

Custom environment to create table-like matrix

I like to set up a custom environment tabularmatrix such that I use it in the math mode as follows: \[ \begin{tabularmatrix} a & b & c \\ d & e & f \\ \end{tabularmatrix} \] ...
raf's user avatar
  • 571
8 votes
2 answers
349 views

Nicematrix overbrace and underbrace clash with surrounding text

I am surprised that I didn't find anything on this topic here. In the following document, the contents of the braces clash with the above text even after several compilations: \documentclass{article} \...
Bubaya's user avatar
  • 2,149
3 votes
2 answers
182 views

How to get two matrices/vectors in the same equation?

Why is this code not working and how can I get it to work? I would like to multiply one row vector with a column vector. Here is what I've tried: \begin{equation} {\begin{bmatrix} 1 & ...
Axelina's user avatar
  • 31
3 votes
3 answers
72 views

How to use latex code to output a triangular pattern like this?

(The Gelfand pattern on some paper.) I have tried to use align and my code is \begin{align} \left( \begin{aligned} \lambda_{1d}& &\lambda_{2d}& &\cdots& &\lambda_{d-1,d}& &...
Enze Shi's user avatar
1 vote
2 answers
73 views

removing vertical space

i have a large matrix that goes of the pdf when compliled. a suggestion to use \resizebox{0.94\textwidth}{!}{%$...$} which i followed but this causes my remaining work to have large vertical spaces in ...
Megamind's user avatar
0 votes
1 answer
141 views

Convert from wxmaxima to LaTeX

I typed a work using wx Maxima. I am really short on time. Is there a way I can convert wxmx/wxm file to LaTeX or PDF? Pls answers should be very basic (i.e a toddler can understand). Also this work ...
Megamind's user avatar
12 votes
2 answers
1k views

How do I write LaTeX code for matrices of this form?

I want to write code for a matrix of the form given in the picture below. How can I do it? What I have tried is the following code: \begin{bmatrix} a & r & 0 & \dots \\ ...
Mr.Gandalf Sauron's user avatar
2 votes
2 answers
103 views

small matrix inside big matrix

How can put a matrix inside a matrix like the picture shown with a big letter inside the smaller one?
Thunder Black's user avatar
3 votes
1 answer
141 views

How do I put a box around a column in a matrix in Latex?

I want to build a matrix in Latex code and wrap some components of it with a square. For terms that are on the same line I managed to do it well. But for terms of different lines I am not able to do ...
Ramos's user avatar
  • 33
3 votes
3 answers
743 views

How can I write this matrix in LaTeX?

I've tried the following in order to reproduce the screenshot below, but I haven't been successful. Any suggestions? \begin{gather*} [p(\theta)]= \sqrt{\frac{2}{3}} {\left[ \cos({\theta}) \...
rania zouaoui's user avatar

1
2 3 4 5
39