How can I make this matrix in LaTeX ?     My MWE :   $ \begin{bmatrix}   x_{11} &amp; . &amp; .  &amp; x_{1n} \\  . &amp; . &amp; . &amp; . \\  . &amp; . &amp; . &amp; . \\  x_{m1} &amp; . &amp; .  &amp; x_{mn} \end{bmatrix} $   I get this :
14622
How to add label to index the rows and columns of the matrix ? because I want to number the line outside the matrix       \[     \begin{array}{lc}       \ Mat_{\varPhi to M} &amp; \left(\begin{array}{@{}ccccc@{}}             1 &amp; 1 &amp; 1 &amp; 1 &amp; 1 \\             0 &amp; 1 &amp; 0 &amp; 0 &amp; 1 \\             0 &amp; 0 &amp; 1 &amp; 0 &amp; 1 \\             0 &amp; 0 &amp; 0 &amp; 1 &amp; 1 \\             0 &amp; 0 &amp; 0 &amp; 0 &amp; 1               \end{array}\right) \\[15pt]     \end{array}     \]
111985
I want to add some over-braces to a matrix to get the following output:    However, this this what I managed to get:      I don't know how to get the neuron 1 and neuron 2 headings...I was thinking of overbraces but not sure how to use it in this case. The stuff on the right of the matrix is not aligned properly...My equation number is moving to the next line as well..Can anyone help me please.  My code is as follows (I am using amsmath package):      \begin{equation}      \begin{matrix}      J      =      \begin{bmatrix}      \frac{\delta e_{1,1}}{\delta w_{1,1}}  &amp; \frac{\delta e_{1,1}}{\delta w_{1,2}} &amp;      \cdots &amp; \frac{\delta e_{1,1}}{\delta w_{j,1}}  &amp; \cdots \\[0.5em]       \frac{\delta e_{1,2}}{\delta w_{1,1}}  &amp; \frac{\delta e_{1,2}}{\delta w_{1,2}} &amp;       \cdots &amp; \frac{\delta e_{1,2}}{\delta w_{j,1}}  &amp; \cdots \\[0.5em]       \cdots &amp; \cdots &amp; \cdots &amp;      \cdots &amp; \cdots \\[0.5em]       \frac{\delta e_{1,M}}{\delta w_{1,1}}  &amp; \frac{\delta e_{1,M}}{\delta w_{1,2}} &amp;       \cdots &amp; \frac{\delta e_{1,M}}{\delta w_{j,1}}  &amp; \cdots \\[0.5em]       \cdots &amp; \cdots &amp; \cdots &amp;      \cdots &amp; \cdots \\[0.5em]       \frac{\delta e_{P,1}}{\delta w_{1,1}}  &amp; \frac{\delta e_{P,1}}{\delta w_{1,2}} &amp;       \cdots &amp; \frac{\delta e_{P,1}}{\delta w_{j,1}}  &amp; \cdots \\[0.5em]       \frac{\delta e_{P,1}}{\delta w_{1,1}}  &amp; \frac{\delta e_{np,2}}{\delta w_{1,2}} &amp;      \cdots &amp; \frac{\delta e_{P,2}}{\delta w_{j,1}}  &amp; \cdots \\[0.5em]       \cdots &amp; \cdots &amp; \cdots &amp;      \cdots &amp; \cdots \\[0.5em]        \frac{\delta e_{P,M}}{\delta w_{1,1}}  &amp; \frac{\delta e_{P,M}}{\delta w_{1,2}} &amp;        \cdots &amp; \frac{\delta e_{P,M}}{\delta w_{j,1}}  &amp; \cdots \\[0.5em]       \end{bmatrix} %\!\!        \begin{aligned}       &amp;\left.\begin{matrix}       m = 1  \\[0.5em]       m = 2  \\[0.5em]       \cdots \\[0.5em]       m = M  \\[0.5em]       \end{matrix} \right\} %       p = 1\\       &amp;\begin{matrix}       \phantom{\cdots}\cdots\\[0.5em]       \end{matrix}\\ %       &amp;\left.\begin{matrix}       m = 1  \\[0.5em]       m = 2  \\[0.5em]       \cdots \\[0.5em]       m = M\\[0.5em]       \end{matrix}\right\}%       p = P\\      \end{aligned}      \end{matrix}      \end{equation}
53005
$$\begin{bmatrix} 1235 &amp;2344 &amp;1234 &amp;1990\\ 2124 &amp; 4123&amp; 1990&amp; 3026 \\ 1230 &amp;1234 &amp;9095 &amp;1230\\ 1262 &amp;2312&amp; 2324 &amp;3907  \end{bmatrix}$$  Clearly, its determinant is not zero and, hence, the matrix is invertible.   Is there a more elegant way to do this?  Is there a pattern among these entries?
98928
Does anyone know how to make (nice looking) double bracket multiset notation in LaTeX. i.e something like (\binom{n}{k}) where there are two outer brackets instead of 1 as in binomial? You can see an example of what I mean in  under the heading "Multiset coefficients" with the double brackets.  In wikpedia they typset it as: \left(\!\!{n\choose k}\!\!\right) but although this works well for LaTeX in maths mode, with inline equations the outer bracket becomes much larger than the inner bracket.  I have also tried using \genfrac{((}{))}{0pt}{}{n}{k} but it has an error with the double brackets.  I am using \binom as well in my document, so I would like the bracket sizes to be similar for \binom and \multiset.  Thanks for any help. I'm surprised I can't find a solution on google.
99396
How do I make this in LaTeX? I keep losing track of the brackets.
68481
Is it possible to divide a matrix by another? If yes, What will be the result of $\dfrac AB$ if $$         A = \begin{pmatrix}         a &amp; b \\         c &amp; d \\         \end{pmatrix},         B = \begin{pmatrix}         w &amp; x \\         y &amp; z \\         \end{pmatrix}? $$
17506
I'm using bmatrix environment from the amsmath package, and I'm trying to do something like this:  \documentclass{article} \usepackage{amsmath}   \begin{document}      \begin{equation}          \begin{bmatrix}              1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; 10 &amp; 11\\          \end{bmatrix}     \end{equation}  \end{document}   However, pdfLaTeX returns an error: "Extra alignment tab has been changed to \cr", and in the output the extra element is moved to the next row. (If I remove one element, then it works perfectly fine). I guess this means that I've hit some hard limit on the number of tab stops in a matrix. Is there a way to change this?  The elements in the matrix are short and could fit perfectly on a single row.
52006
How can I Tex this equation?  I try to have exactly the same result but for the moment I only succeeded in having intersecting lines... Thanks!
46029
What LaTeX markup would one have to write to produce a result similar to the image below?    Please excuse my Paint-and-mouse drawing skills. :-)
56051
I would like to know how to add dash lines in Matrix (see figuge)  Cheers  S.L.    \documentclass{article} \usepackage{amsmath}  \begin{document} \begin{equation} \begin{bmatrix} N &amp; B_i \\ B_i^T &amp; 0 \end{bmatrix} \begin{bmatrix} x_i\\ k \end{bmatrix} =\begin{bmatrix} n\\ 0 \end{bmatrix} \text{ with } n = A^TPl \end{equation} \end{document}
94182
If I have a matrix of the form $$\begin{pmatrix} A &amp; -B \\ B &amp; A \end{pmatrix}$$ where all blocks are square and have the same dimensions, how do I turn it into something like $$\begin{pmatrix} X &amp; Y \\ 0 &amp; Z \end{pmatrix}$$ so that the determinant is easy to calculate using row and column operations?
69463
I don't have a clue of what's going on. We haven't learn this in class so I need all the help possible. The more detailed of an explanation, the better. Thanks in advance. The only info I have is that this matrix is Orthogonal. Which means I know the answer, just don't know how to get it.  \begin{bmatrix}        \cos\theta &amp; -\sin\theta \\        \sin\theta &amp; \cos\theta       \end{bmatrix}
69921
I'm currently working on writing something in latex that requires many usages of diagonal matrices of form   $\begin{bmatrix*}     \lambda_1 &amp; 0 &amp; 0\\     0 &amp; \lambda_2 &amp; 0\\     0 &amp; 0 &amp; \lambda_3\\  \end{bmatrix*}$   with a variable number of parameters \lambda.  Previously, I've found a script that helped me create vectors with multiple parameters and therefore save me from rewriting the matrix for them:  \newcommand{\vect}[1]{% \begin{bmatrix} #1\checknextarg} \newcommand{\checknextarg}{\@ifnextchar\bgroup{\gobblenextarg}{ \end{bmatrix}}} \newcommand{\gobblenextarg}[1]{ \\ #1\@ifnextchar\bgroup{\gobblenextarg}{ \end{bmatrix}}}   While this script works for vectors, I can't think of a generalized way to make something similar to this for diagonal matrices. Finding a script like that will save me a ton of time. I've tries using lualatex for this but I'm inexperienced with it and this doesn't help with trying to have a variable amount of parameters and a corresponding amount of 0s. What I hope for is for the example above, I would simply be able to do something like $\diagmat{\lambda_1}{\lambda_2}{\lambda_3}$ for any amount of parameters, similar to what I can do with \vect. While I'm not sure if this is possible, anything that can save me time and space in writing these matrices would be appreciated.
16171
I was working on some calculus today and tried to typeset a matrix of partial derivatives and ran into some trouble. Here is my code:  \documentclass{minimal} \usepackage{mathtools} \begin{document} \begin{equation} \begin{pmatrix}     \frac{\partial f^1}{\partial x_1}   &amp; \frac{\partial f^1}{\partial x_2}\\     \frac{\partial f^2}{\partial x_1}   &amp; \frac{\partial f^2}{\partial x_2} \end{pmatrix} \end{equation} \end{document}   As can be seen, the output results in the subscripts from the denominators of the top row on the matrix with the superscripts from the numerators of the bottom row on the matrix. Is there an easy way to avoid this?
94893
How do you write this in LaTeX:
91233
I need the LaTeX equation with double square bracket and double paranthesis. Can anyone suggest me the proper code? Here, I had attached the screenshots.
58549
How can you get the argmin or argmax in Latex? Two solutions I found are:  \underset{x}{\operatorname{argmax}}   \DeclareMathOperator*{\argmin}{arg\,min}   Any other ideas?  [1]   [2]