Difference between revisions of "Addition of matrices"
From Robotics
Line 21: | Line 21: | ||
\vdots & & & \\ | \vdots & & & \\ | ||
a_{m1}+b_{m1} & \dots & &a_{mn}+b_{mn} | a_{m1}+b_{m1} & \dots & &a_{mn}+b_{mn} | ||
+ | \end{array}\right] | ||
+ | </math><br/><br/> | ||
+ | |||
+ | {{Example | ||
+ | |Title=Addition of two 3-by-3 matrices | ||
+ | |Contents=<br/> | ||
+ | :<math> | ||
+ | \mathbf{A}_e+\mathbf{B}_e= | ||
+ | \left[\begin{array}{ccc} | ||
+ | 1 & 3 & -2\\ | ||
+ | 0 & -1 & 3\\ | ||
+ | 2 & 4 & 2 | ||
+ | \end{array}\right]+ | ||
+ | \left[\begin{array}{ccc} | ||
+ | -3 & 2 & -1\\ | ||
+ | 2 & 4 & -3\\ | ||
+ | 0 & -2 & 1 | ||
+ | \end{array}\right]= | ||
+ | \left[\begin{array}{ccc} | ||
+ | 1-3 & 3+2 & -2-1\\ | ||
+ | 0+2 & -1+4 & 3-3\\ | ||
+ | 2+0 & 4-2 & 2-1 | ||
+ | \end{array}\right]= | ||
+ | \left[\begin{array}{ccc} | ||
+ | -2 & 5 & -3\\ | ||
+ | 2 & 3 & 0\\ | ||
+ | 2 & 2 & 1 | ||
\end{array}\right] | \end{array}\right] | ||
</math> | </math> | ||
+ | }} |
Revision as of 14:03, 16 May 2014
← Back: The transpose of a matrix | Overview: Matrices | Next: Multiplication with a vector → |
Requirement for the addition of two matrices is, that they have the same number of rows and the same number of colums. So both matrices have to be an m-by-n matrix. The addition is made by adding each the components:
Example: Addition of two 3-by-3 matrices
|