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

learn more… | top users | synonyms (1)

0
votes
1answer
15 views

Error with large matrix [duplicate]

I am trying to produce a very large matrix: \[ CM = \begin{bmatrix} 0& 0& 0& 1.0000& 0& 1.0000& 0& ...
3
votes
1answer
29 views

Create a block matrix with four quadrants

I want to create a block matrix of this form: But Block A should be a diagonal matrix with 1 on the diagonal, the other blocks should be B, C and D like in the picture. But the size of each block ...
4
votes
1answer
59 views

tikz matrix as legend does not work with trim axis

I am using the tikz-library matrix to create a legend for a plot with two y-axes. When I add "trim axis right" to the code the legend is stretched to the right. How can I prevent this? ...
3
votes
1answer
26 views

Missing } inserted when using \begin{matrix}

I created following equation with an online generator, however it doesn't work on texmaker. \begin{equation} p_{ij}=\left\{\begin{matrix} \frac{\tau_{ij}^{\alpha}}{a\sum _{l\in ...
5
votes
2answers
90 views

Descriptive text around a matrix

I am trying to write a matrix with a bit of text sidewards and above it in order to explain its meaning. At the moment, this is my code: \begin{equation} \begin{turn}{90} \mbox{\# rows} \end{turn} ...
2
votes
0answers
62 views

General matrices

I want to use LaTeX to add matrix that looks like this: -----L_1----- -----L_2----- . . . . . . . ----L_n----- and matrices where I want to show how a general cell in the matrix looks like (for ...
0
votes
0answers
24 views

alignment error? [duplicate]

$$\dot{\begin{pmatrix} x_1\\u_1\\y_1\\u_1\\z_1\\u_3\\x_2\\u_4\\y_2\\u_5\\z_2\\u_6 \end{pmatrix}}= \begin{pmatrix} 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 ...
6
votes
2answers
148 views

\cellcolor is taking too much space in a matrix

I would like to highlight a row, a column and a specific cell in a matrix. I ended up using \cellcolor. My problem is that \cellcolor is taking too much space, therefore the matrix borders are being ...
4
votes
2answers
150 views

TiKZ matrix of objects

I am drawing diagrams which consist of grids, some cells of which are filled with circles, like this: I created this picture with \begin{tikzpicture}[scale=0.6] \draw[shift={(0.5,0.5)}] (0,0) ...
2
votes
2answers
57 views

How to wrap text around a matrix?

In the middle of a paragraph (text is justified), I have a 5-row matrix. I've been trying to find a way to wrap the text in the paragraph around the matrix, so there aren't large gaps above and below ...
2
votes
1answer
33 views

alignment of rows in a bmatrix which are themselves bmatrices

in the code below I'd like the elements in each of the rows to be aligned with the corresponding elements in the other rows and the inside brackets in each row to be aligned with the corresponding ...
2
votes
1answer
45 views

Failure to produce nested matrix with shortcut macro

I use a \arr macro as a shortcut for bmatrix environments. In addition, I use a hacked version of bmatrix (see: What's the best way make an “augmented” coefficient matrix?) so that it's easier to ...
3
votes
1answer
84 views

Matrix with rows and columns labeled

It is trivial to make matrices like so: \begin {pmatrix} s & t & a \\ c & k & x \\ cha & n & ge \end {pmatrix} It is not so trivial to impose labels on the rows and columns ...
2
votes
1answer
36 views

Matrix equation align - letters and matrices

I am trying to align a matrix equation so that the alignment it with the top of the column matrix A (not the centre as it is at the moment). Any help would be appreciated. Here is what I have at the ...
4
votes
1answer
52 views

Getting block matrices to be the same size

I want to produce equations with block matrices \documentclass[a4paper,12pt,titlepage]{article} \usepackage[fleqn]{amsmath} \usepackage[pdftex]{graphicx} \usepackage{blkarray} \usepackage{mathtools} ...
3
votes
2answers
48 views

Alignment of labeled vector with other vectos

I would like create 3 line vectors that are directly aligned to each other. I would to label the first vector (here example A, B, C ...) However the alignment (and the size of the brackts does not ...
3
votes
1answer
41 views

Align problem in Bmatrix

My latex code is like: \begin{eqnarray*} \underset{a, b}{argmax}= & \begin{bmatrix*} t(a,b,c) u_1(a)+ t(a,b) u_1(a) & [c] \\ t(a,b,c u_1(a) & [d] \\ \end{bmatrix*} \end{eqnarray*}\\ ...
4
votes
2answers
68 views

Overruling global node style in matrix

I want to build a matrix of several nodes of different types. In my example there is a matrix containing two "modules" and one "label". For convenience I wanted to use matrix of nodes with ...
3
votes
3answers
59 views

Optimizing this cases-command for inline expresions

I'd like to optimize the following command \documentclass{standalone} \usepackage{amsmath} \newcommand{\casos}[2]{\left.\begin{cases} #1 \\ #2 ...
2
votes
1answer
108 views

tikz matrix background color for unevenly sized cells

I've adapted the example below from elsewhere on this forum. What I'd like is to have the background fill to come out as a rectangle covering the contents of all cells. What is the easiest way to ...
1
vote
0answers
37 views

plot matrix with epslatex

When plotting a data matrix with the plot command and epslatex terminal the generated image is correct. However, the generated latex file outputs also the source path, i.e. 'Date/data_file.txt'. Any ...
2
votes
1answer
57 views

Seemingly simple block matrix

I have a seemingly simple block matrix that I want to set with as few dependencies as possible. I already have amsmath and friends loaded. The only thing I'm intent on avoiding is blkarray. Here is ...
3
votes
3answers
90 views

Every element of a matrix with \displaystyle

Is there a way to achieve every element of a matrix to be with \displaystyle? I tried many approach but no style change happened within a matrix environment. For example, \documentclass{article} ...
2
votes
1answer
64 views

Formatting matrices with vector elements along column headings?

Often I've seen the matrix equation Ax = b presented as matrix A augmented with vector b, with the individual elements x_1 ... x_n written sequentially as headers across the columns; is it possible to ...
3
votes
1answer
71 views

How to make an equation that contains several matrices?

Being new to LaTeX, I find the matrix construction a bit annoying, even for simple matrices. How can I construct the following matrix?
3
votes
1answer
59 views

Typing an 11 x 11 (or larger) Matrix [duplicate]

I would like to explicitly write out a n x n matrices in my paper, but once n \geq 11, I get compiling errors and it refuses to print the matrix. Here is what I have: \documentclass{standalone} ...
2
votes
0answers
31 views

Troublesome extra space in matrix with ConTeXt

I need to display a column vector in a table and, by doing it, an extra space occurs like an empty extra number. How can I fix this please ? \starttable[|r|l|] \NC $u=\startmatrix 1 \NR ...
4
votes
1answer
135 views

missing } inserted, Displaying aligned matrix equations, yet braces balanced

I am trying to display in math mode two system equations aligned \documentclass[9pt,a4paper,twocolumn]{article} \usepackage[margin=1.5cm]{geometry} \usepackage[english]{babel} ...
2
votes
1answer
26 views

Trouble in alignment of matrix in subquestions

Please let me know how to fix the problem of alignment of matrix equation in the sub question. In question 4 (b) the matrix gets its position in the center whereas I want it just from the beginning. ...
7
votes
2answers
143 views

Aligning equations in matrix with outside character

I would like to align these equations on the equals sign (so that the curly braces are flush) and also align the 'ranges' on the RHS side on the 't'. Can anyone help? \begin{equation} ...
2
votes
1answer
75 views

matrix image in Beamer

I am preparing a Beamer presentation, and would like to have kind of a function (I will do this several times with different inputs) that given a matrix with elements between 0 and 1 (like an output ...
1
vote
1answer
34 views

Missing $ error with matrix

The code below produces the mistake in the picture. Any idea why? % !TEX encoding = UTF-8 Unicode \documentclass[a4paper,12pt]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
6
votes
4answers
532 views

Alignment in matrix (bmatrix)

Here is a MWE: \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \begin{document} The reparameterisation is \begin{equation} \label{eqn:linear_ssK3} \begin{matrix} s & = ...
2
votes
0answers
173 views

Controlling delimiters in matrices typeset with TiKZ

This question is directly related to Loop Space user's answer to question Broken matrix - gaps in brackets, in which an alternative TiKZ method to amsmath matrix typesetting is provided. The ...
2
votes
0answers
13 views

How to cross a column in a matrix! [duplicate]

I need some help. I need to draw horizontal lines all across row 1 and 3, and vertical lines all across columns 2 and 4. I'm aware I can use \makebox[0pt][l]{\rule[0.1cm]{0.19\textwidth}{0.7pt}} to ...
0
votes
2answers
50 views

How to resize a matrix in beamer

Currently I am having problem in resizing the matrix. The following is the code: \begin{frame} \frametitle{XXX} $$\small\begin{pmatrix} I_{\frac{k}{2} \times \frac{k}{2}} & 0_{\frac{k}{2} ...
1
vote
1answer
250 views

what is the latex command for this notation

could anyone tell me what will be the latex command for this? I am very much confused, I am not even comfortable in matrix writing while typing latex I always copy paste the matrix command to write a ...
2
votes
2answers
54 views

How do I use \bmatrix in a subfigure?

I am trying to put two matrices next to each other with the same caption, but I am having trouble using \bmatrix in the subfigure environment. Here is the code of what I am trying to do: ...
2
votes
1answer
335 views

Multiple line matrix equations

I am trying to fit a rather large matrix equation into a document, but it is so large that I cannot fit it onto a single line. Moving the end of the equation onto a new line appears to be the only way ...
2
votes
1answer
62 views

How can I organise this matrix in beamer?

I have three vectors that should be in same line in this frame. I can not do it. Could you help me. The MWE is \documentclass{beamer} \begin{document} ...
3
votes
3answers
269 views

The matrix is cut off

I wrote a long matrix in LaTeX \begin{equation} \rho H = \left(\begin{array}{ccc} \rho_{11} \hbar \omega_{1} +\rho_{13} \hbar \Omega_{p} cos(t\omega_{p}) & \rho_{12} \hbar \omega_{2}+ \rho_{13} ...
2
votes
0answers
198 views

Column Space and Null Space of a Matrix [closed]

What are the notational best-practices for typesetting the column space and null space of a matrix A? Let's see how some of the different options look: Column Space: $col(\mathbf(A))$ ...
2
votes
1answer
173 views

Wrong (too much) vertical space above \vdots in small matrix

If one uses \vdots in a smallmatrix-environment the vertical spacing above the dots is too large. It is the same spacing as in a normally sized matrix-environment. Minimal working example: ...
3
votes
1answer
50 views

how can I get the thicker x symbol like the following picture?

I try the \boldsymbol{\times}, but it doesn't look right.
4
votes
1answer
89 views

Very strange result while writing a trace of matrix

My Jacobian matrix evaluated at the equilibrium is denoted by J_E. I typed for its trace as tr\textit{J_E}. And the result is very strange. tr appears good but \textit{J_E} part is unlimitedly ...
6
votes
1answer
9k views

Matrix in Latex

I am new to Latex, and I have been trying to get the matrix of following form [x11 x12 x13 . . . . x1n x21 x22 x23 . . . . x2n . . . . xd1 xd2 xd3 . . . . xdn] ...
0
votes
0answers
15 views

bmatrix with individual column alignment specifier [duplicate]

I know that I already found this, but I am not sure where, so I ask it here. How can I individually specify the number and alignment of a bracket matrix using bmatrix? \documentclass{article} ...
6
votes
2answers
112 views

Insert matrix into \subsection{}?

I was trying to insert matrix into a \subsection{}: \subsection{Suppose $X= \begin{array}{cc} 1 & 2 \\ 3 & 4 \end{array}$} This gives me an error: ! TeX capacity exceeded, sorry [input ...
2
votes
1answer
55 views

rotate box in reverse inside a rotate box ? possible?

I need to make brackets of various kinds stretch with the length of the argument below and above. They require rotation of text inside a rotated matrix. For example, I am trying to make a round ...
2
votes
1answer
54 views

alignment of different elements inside and outside matrix in tikz

I am facing issues in getting the different elements of the following tikzpicture at correct positions. I think the problem arises because the width of elements within the matrix differs. ...