How to create a labelled matrix in LaTeX?

  • Context: LaTeX 
  • Thread starter Thread starter rwinston
  • Start date Start date
  • Tags Tags
    Latex Matrix
Click For Summary
SUMMARY

This discussion focuses on creating a labelled matrix in LaTeX using the bordermatrix and kbordermatrix commands. The bordermatrix command allows users to create matrices with labeled rows and columns, using parentheses instead of braces if desired. The kbordermatrix package offers additional customization options for delimiters and formatting. Users seeking to enhance their LaTeX skills in matrix representation will find these tools essential.

PREREQUISITES
  • Basic understanding of LaTeX syntax
  • Familiarity with matrix notation in mathematics
  • Knowledge of the bordermatrix command
  • Experience with LaTeX packages, specifically kbordermatrix
NEXT STEPS
  • Explore the kbordermatrix package documentation for advanced features
  • Learn about other LaTeX matrix environments such as array and tabular
  • Practice creating complex matrices with different delimiters using bordermatrix
  • Investigate additional LaTeX packages that enhance mathematical typesetting
USEFUL FOR

LaTeX users, mathematicians, and researchers who need to create visually appealing labelled matrices for academic papers or presentations.

rwinston
Messages
36
Reaction score
0
Hi

does anybody know how to create a labelled matrix in LaTeX? By which I mean something like this:
a b
a [ 1 0 ]
b [ 0 1 ]

Where the inner elements are within the braces, but there are tabular label elements for the rows and columns (a and b). Cant get it too look right!

Cheers
 
Physics news on Phys.org
Hi rwinston,

If you don't mind parenthesis instead of braces you can use bordermatrix from plain TeX:

<br /> \bordermatrix{&amp;a_1&amp;a_2&amp; a_3 \cr<br /> b_1 &amp; 1 &amp; 2 &amp; 3 \cr<br /> b_2 &amp; 2 &amp; 3 &amp; 4 \cr<br /> b_3 &amp; 3 &amp; 4 &amp; 5 \cr}<br />


<br /> \bordermatrix{&amp;a_1&amp;a_2\cr<br /> b_1 &amp; 1 &amp; 2 \cr<br /> b_2 &amp; 2 &amp; 3 \cr}<br />


<br /> \bordermatrix{&amp;a_1&amp;a_2 \cr<br /> b_1 &amp; 1 &amp; 2 \cr<br /> b_2 &amp; 2 &amp; 3 \cr<br /> b_3 &amp; 3 &amp; 4 \cr}<br />

There is also a newer kbordermatrix package that you can use that gives more options (such as being able to change the delimiters).
 
Thanks! Thats exactly what I need!
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
18K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K