You are on page 1of 25

Matrices

What are matrices?


What are matrices?
Elements and Dimensions

🠶 Element – each value in a matrix

🠶 Dimension - Number of rows by the number of columns of a matrix


Example

🠶 a) What is the dimension of A? = 3 x 4 matrix

🠶 b) What is the third column of A? =

🠶 c) What is the second row of A? =


🠶 d) What is the element of A in the (3, 2)th position? = 1
Exercises
Matrix Arithmetic
🠶 Matrix Addition

🠶 The sum of two matrices of the same size is obtained by adding elements in the
corresponding positions. Matrices of different sizes cannot be added, because such
matrices will not both have entries in some of their positions.
Matrix Addition
Example

🠶 Find A + B
Matrix Arithmetic

🠶 Matrix Products
🠶 A product of two matrices is defined only when the number of columns in the first matrix equals
the number of rows of the second matrix.
Matrix Product
Example
Example
Matrix Products
Matrix Products
Example
Exercises

🠶 Find AB
Transpose of Matrices
Example

At=
Square Matrix

🠶 A square matrix A is called symmetric if A = At


Exercises
Zero-One Matrices

🠶 A matrix all of whose entries are either 0 or 1 is called a zero–one matrix.


🠶 Join and Meet of Zero-One matrices
🠶 Find the join and meet of the zero–one matrices

🠶 The Join of A and B is

🠶 The Meet of A and B is


Example
Boolean Product

🠶 Find the Boolean product of A and B, where

🠶 The Boolean product A ⊙ B is


Example

(1/\ 0) v (1 /\1) (1/\1) v (1/\0)


(0/\0) v (1/\1) (0/\1) v (1/\0)

0v1 1v0
0v1 0v0

11
10

You might also like