Discussion:
Matirx problem
Jörgen Gladh
2007-05-04 16:08:54 UTC
Permalink
Hello all users,
I have a little problem, I writeing down some matrix, and the first row
and the first column I want to use as a position marker and the rest as
a ordinary matrix with the square brackets []. How can I do this in a
nice way.
Kindest regards Jörgen
Yannick
2007-05-04 19:25:53 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello all users,
I have a little problem, I writeing down some matrix, and the first row
and the first column I want to use as a position marker and the rest as
a ordinary matrix with the square brackets []. How can I do this in a
nice way.
Kindest regards Jörgen
--
You can use the command \begin{bmatrix}
1&2&3\\
4&5\\
6&7&8&9
\end{bmatrix}

The number of "&" per line can be different. You can also nest this
environment, that means, you can do
\begin{matrix}
1& 1\\
1& \begin{bmatrix}
1&1\\
1&1\\
\end{bmatrix}
4&5\\
\end{matrix}

"matrix " gives you no braket, "bmatrix" gives you "[ ]" and "pmatrix
gives you "( )".
I tried this and it worked very well.
Hope you will succeed,

Yannick
Giangiacomo Bravo
2007-05-05 07:50:35 UTC
Permalink
You can use the bordermatrix command. For instance:

\[
\bordermatrix{%
& C & D \cr
C & b-c & -c \cr
D & b & 0 \cr
}
\]


As default, bordermatrix uses normal parenthesis,
but you can redefine it if you need square
brackets (see Herbert Voss's "Math mode" guide,
section 5, for more details about how to do that).

All the best,
Giangiacomo

PS why don't you post this kind of question in
the www.latex-community.org forum instead of the
TXC one? That's the right place!
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello all users,
I have a little problem, I writeing down some matrix, and the first row
and the first column I want to use as a position marker and the rest as
a ordinary matrix with the square brackets []. How can I do this in a
nice way.
Kindest regards Jörgen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE -
<http://enigmail.mozdev.org>http://enigmail.mozdev.org
iD8DBQFGO1qWrmH/r/VU2RsRAk0pAJ9iunVgKNhssozOGykcqzlTcSX2kwCfQlIT
/J+TYuuFHIAaA913Zs8nvoo=
=llPb
-----END PGP SIGNATURE-----
Continue reading on narkive:
Loading...