- Random Topics
- Random Topics
- Matrix Multiplication
- Leap Year Formula Explained
- Matrix Addition
- Matrix Subtraction
- Celsius to Fahrenheit
- Find LCM
- Find HCF
- Pascal's Triangle
- Area Perimeter of Triangle
- Programming Examples
- Python Program Examples
- Java Programming Examples
- C++ Programming Examples
- C Programming Examples
- Give Online Test
- All Test List
- Java Test
- C Test
- C++ Test
- HTML Test
- CSS Test
- JavaScript Test
- SQL Test
- Computer Fundamental Test
- Operating System Test
- Networking Test
- MySQL Test
How to Add Two Matrices ?
In this article, you will get aware about how to add any two given matrix. Let's suppse there are two given matrix, matrix A and Matrix B. The value of Matrix A is:
1 2 3 4
And the value of Matrix B is:
5 6 7 8
Then its addition goes like:
So we have another matrix, matrix C. The value of matrix C is:
6 8 10 12
This is the addition of two given matrix A and B.
Condition for Matrix Addition
In order to define the addition of two matrices, dimension must be same. That is, if there are 3 rows and 4 columns available in a matrix say A, then to add it with another matrix say B. Matrix B must have 3 rows and 4 columns in order to define its addition with matrix A.
Programs Made on This
« Previous Tutorial Next Tutorial »