4. Matrix
• Matrix is nothing but a two
dimensional array of numbers
• Normally, represented in the
form of :
• Rows
• Columns
5. Example
1 2 3 4
5 6 7 8
9 10 11 12
A =
Three Rows
Four Columns
6. i & j are two Integers
i representing the Row number
j representing the Column number
7. Operations Performed with Matrix
• Addition of two matrices.
• Addition of a scalar and a matrix
• Subtraction of two matrices
• Subtraction of a scalar from a matrix
• Multiplication of two matrices
• Multiplication of a scalar with a matrix
• Division of a scalar with a matrix
• Transpose of a matrix