Activity 3 Matrix Operations
Activity 3 Matrix Operations
Activity 3 Matrix Operations
Matrix Operations
Name: Section:
Date Performed: Date Submitted:
Instructor:
1. Objective(s):
3. Discussion:
Operations on matrices are doing matrix addition, scalar multiplication, and matrix multiplication. By
definition of matrix addition, if A = and B = are matrices of size , then their sum is the
matrix given by A + B = + . For multiplication of real numbers on a matrix or also known
as scalar multiplication, if A = is an matrix and c is a scalar multiple of A by c is the
matrix A given by cA = . However, for matrix multiplication, if A = is an matrix and
B= is an matrix, then the product is an matrix = where
=∑ = + + + …+ .
Where In is the identity matrix of order n. The matrix B is called the inverse of A. The inverse of a
matrix A is usually denoted by A-1.
4. Procedure:
1 0 3 3 2 7
= and =
−5 8 4 1 −4 5
Procedure:
1. Open the MATLAB.
2. From the above matrices, type all the entries of A and B on the command window and name
them as matrix A and matrix B respectively.
3. Find the sum of the matrices, type on command window “A + B”.
(Note: Matrices should be of the same size otherwise the sum is undefined.)
−4 2 4
= 3 2 −1 c=4
0 1 3
Procedure:
1. Open a new window command for the next example.
2. Enter all the elements of matrix D and scalar c, name the arrangement as matrix D and scalar c
respectively.
3. Find the scalar multiple, type on command window “c*D”.
(Note: dimension is not necessary to determine the scalar multiple of the matrix.)
In MATLAB
>> c = 4
>> c*D
7 4 9 8 7 3 8 2
3 1 −3
D= E = 3 −5 F= 6 5 4 G = 1 5 −4
4 0 6
1 2 3 2 1 2 0 1
Procedure:
1. Open a new window command for the next exercise.
2. Enter all the elements of matrix D and matrix E.
(Note: The number of rows in one of the matrix should be equal to the numbers of columns on
another matrix.)
3. Determine the product of the two matrices, type on command window “D*E”.
Activity 4. Find the inverse of matrix G, type on command window “inv(G)” and “rats(inv(G))”
_____________________________________________________________
_____________________________________________________________
Technological Institute of the Philippines - Manila Course: MATH 022A
Math & Physics Department ONLINE LECTURE
Exercises
3 −2 5 6 2 3 2 4
1 −3 0
= 0 4 −1 = 4 1 8 = −1 5 =
−3 4 −2
2 1 1 −1 2 4 2 7
1. 2A + 3B 2. 3C – DT
3. DB – CTA 4. A–1A
(AB)–1 =
B–1 A–1 =
Technological Institute of the Philippines - Manila Course: MATH 022A
Math & Physics Department ONLINE LECTURE
Conclusion
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Property of the Technological Institute of the Philippines (T.I.P.). No part of the materials made
and uploaded in this learning management system by T.I.P. may be copied, photographed, printed,
reproduced, shared, transmitted, translated or reduced to any electronic medium or medium-
readable form, in whole or in part, without prior consent of T.I.P.