Tuesday, October 12, 2010

Lab 14 - section 6 - Matrix Addition

Write a java code that will add two matrices of same order ( say 3X4 ).

Note a matrix is just a 2D array of numbers. So if the matrix is 3X4 then it has 3 rows and 4 columns. The result of adding two matrics is a matrix of the same order and the elements of the resultant matrix are found by adding corresponding elements of the matrices.

No comments: