Math & Science ⇒ matrix/vector algebra
matrix/vector algebra
[matrix]*[vector]=[vector]
All on the same line. Is there a relatively simple way to do this?
Thanks.
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
matrix/vector algebra
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathtools} % loads »amsmath«
\begin{document}
\begin{equation}\label{eq:matrixeqn}
\begin{pmatrix}
m_{11} & m_{12} & m_{13} \\
m_{21} & m_{22} & m_{23} \\
m_{31} & m_{32} & m_{33}
\end{pmatrix}
\cdot
\begin{pmatrix}
v_{11} \\
v_{21} \\
v_{31}
\end{pmatrix}
=
\begin{pmatrix}
r_{11} \\
r_{21} \\
r_{31}
\end{pmatrix}
\end{equation}
\end{document}[1] View topic: LaTeX Resources for Beginners
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10