Math & Science ⇒ How to create matrices with column and row numbers
-
- Posts: 44
- Joined: Wed Aug 04, 2010 7:00 pm
How to create matrices with column and row numbers
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to create matrices with column and row numbers
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
How to create matrices with column and row numbers
with regard to your question, I was quite happy after discovering the package kbordermatrix, http://www.hss.caltech.edu/~kcb/TeX/kbordermatrix.pdf.
Albart
-
- Posts: 44
- Joined: Wed Aug 04, 2010 7:00 pm
How to create matrices with column and row numbers


Code: Select all
\begin{displaymath}\kbordermatrix{\mbox{indices}&x_{1}&x_{2}&x_{3}&x_{4}\\y_{1}&A&B&M_{1,3}&C}\\y_{2}&D&E&F&G\\y_{3}&H&I&J&K}\end{displaymath}
i have included the package in my document as:
Code: Select all
\usepackage{kbordermatrix}
How to create matrices with column and row numbers
The quicker (and dirtier solution): download the file and copy it into the same directory that contains your .tex file.