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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- 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.