Problem with writing matrix equation [duplicate]

How to write an equation involving matrices in latex?

Say a 2x2 matix multiplied by a 2x1 matrix equals to a 2x1 matrix.

marked as duplicate by percusse, Stefan Pinnow, Schweinebacke, Troy, Andrew SwannOct 27 '17 at 11:07

\begin{matrix}