How do I insert a matrix in the LaTeX tool?
`\[\left[ x~~ x~~x ~~|~~x \right]\]` \[\left[ x~~ x~~x ~~|~~x \right]\] But I'm not sure how to get a second row in it. \[\left[ x~~ x~~x ~~|~~x \right]\\\left[ x~~ x~~x ~~|~~x \right]\] `\[\left[ x~~ x~~x ~~|~~x \right]\\\left[ x~~ x~~x ~~|~~x \right]\]`
@color Do you know? :p
\(\begin{bmatrix} x & y & d & \dots & f \\ b & a & c & \dots & e \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ \infty & \phi & \alpha & \dots & \xi \end{bmatrix}\) I got it `\(\begin{bmatrix} x & y & d & \dots & f \\ b & a & c & \dots & e \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ \infty & \phi & \alpha & \dots & \xi\end{bmatrix}\)`
i didn't knew earlier but then i checked using the equation too :d
how do u put that grey box tho
you put ` before and after the code, make sure there are no enters in the code otherwise it won't work but the latex will still work xD
There are also different supported delimiters for a matrix, given by `bmatrix` (square brackets `[]`), `vmatrix` (vertical pipes `||`), `pmatrix` (parentheses `()`), `Bmatrix` (curly braces `{}`), and `Vmatrix` (double vertical pipes (`|| ||`). Examples: `\begin{bmatrix}1&0\\0&1\end{bmatrix}` \(\implies\begin{bmatrix}1&0\\0&1\end{bmatrix}\) `\begin{vmatrix}1&0\\0&1\end{vmatrix}` \(\implies\begin{vmatrix}1&0\\0&1\end{vmatrix}\) `\begin{pmatrix}1&0\\0&1\end{pmatrix}` \(\implies\begin{pmatrix}1&0\\0&1\end{pmatrix}\) `\begin{Bmatrix}1&0\\0&1\end{Bmatrix}` \(\implies\begin{Bmatrix}1&0\\0&1\end{Bmatrix}\) `\begin{Vmatrix}1&0\\0&1\end{Vmatrix}` \(\implies\begin{Vmatrix}1&0\\0&1\end{Vmatrix}\)
You can also consider changing the environment to `array` which is quite handy for making tables with arbitrary vertical/horizontal lines, then add delimiters. Silly example: `\left.\begin{array}{|c|r}\text{what}&\text{is}\\\hline\text{going}&\text{on}\end{array}\right\}` gives \[\left.\begin{array}{|c|r} \text{what}&\text{is}\\ \hline \text{going}&\text{on} \end{array}\right\}\]
Oh, thanks! :)
Join our real-time social learning platform and learn together with your friends!