0% found this document useful (0 votes)
83 views2 pages

Ce302 Sare-Alfonso-Luis Assignment

Matrices can be added or multiplied if they have the same dimensions. To add matrices, the elements in the same positions are summed. To multiply matrices, the columns of the first matrix must equal the rows of the second matrix. Then, each element is the dot product of the corresponding row and column. Examples are shown of adding and multiplying matrices by inserting values and computing the results.

Uploaded by

Jubillee Magsino
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views2 pages

Ce302 Sare-Alfonso-Luis Assignment

Matrices can be added or multiplied if they have the same dimensions. To add matrices, the elements in the same positions are summed. To multiply matrices, the columns of the first matrix must equal the rows of the second matrix. Then, each element is the dot product of the corresponding row and column. Examples are shown of adding and multiplying matrices by inserting values and computing the results.

Uploaded by

Jubillee Magsino
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SARE, ALFONSO LUIS S

CE-302

MATRIX is a rectangular array of numbers or functions which are enclosed in brackets.

ADDITION OF MATRICES
Two matrices can be added together if and only if they have the same dimension.
Their sum is obtained by summing each element of one matrix to the corresponding element of the other matrix.
Example: (INSERT ANY VALUE ON EITHER OF THE MATRICES)

MATRIX A MATRIX B MATRIX C


1 2 3 4 5 1 21 3 34 54 8 9 8 54 54
45 21 2 3 4 + 8 5 7 54 0 + 8 9 7 8 87
3 221 3 2 0 5 6 9 5 3 2 562 56 56 98
54 65 67 86 34 4 5 6 2 3 23 56 0 561 56
122 21 43 53 0 1 1 1 1 2 23 51 15 0 2

ANSWER To get the answer, B14,I14, and P14 was added. 1+1+8 =10 and such.
10 32 14 92 113 We successfully added them together since all of the matrix are of the
= 61 35 16 65 91 same dimension which is a 5x5 matrix
10 789 68 63 101
81 126 73 649 93
146 73 59 54 4
MULTIPLICATION OF MATRICES
Just as with adding matrices, the sizes of the matrices matter when we are multiplying.
For matrix multiplication to work, the columns of the second matrix have to have the
same number of entries as do the rows of the first matrix.

Example: (INSERT ANY VALUE ON EITHER OF THE MATRICES)

MATRIX A MATRIX B MATRIX C


2 1 1 12 3 2 1 2 3 3 4 5 1 2 3 4 5 6
4 3 3 2 2 2 1 2 3 4 5 6 2 3 4 5 6 7
3 2 1 2 2 2 x 4 5 6 7 8 9 x 1 2 3 6 7 9
3 2 1 22 12 1 6 5 4 3 2 1 32 3 6 8 7 8
2 2 2 2 2 2 6 3 2 2 3 4 3 4 0 5 3 3
1 1 2 3 4 5 7 6 0 1 4 0 6 5 4 4 2 4

ANSWER
2 4 9 144 60 60 To get the answer, B44, J44, and R44 was multiplied. 2x1x1=2 and such.
8 18 36 40 60 84 We successfully multiplied them together since all of the matrix
= 12 20 18 84 112 162 are of the same dimension which is a 6x6 matrix.
576 30 24 528 168 8
36 24 0 20 18 24
42 30 0 12 32 0

You might also like