


Now perform the matrix multiplication to see what you get. To do this, you will need the decoding matrix. Suppose now that you are the one receiving this encoded message as represented by matrix AB, and you want to decode it to see what it says. Now our message “SECRET CODE” has been encoded and is represented by the numbers in matrix AB. To encode a message, simply take the matrix that contains our message, matrix B, and multiply on the left by the encoding matrix A. If you need to, add any extra blanks to the end of the message to fill out the matrix.Ĭreate matrix B on your spreadsheet and make sure to label it.

Fill in the matrix B with the numbers corresponding to the message. When you fill the column, start over in the second column. Start with the first number in the upper left and move down the first column until you have 3 rows. Now put these numbers into a matrix B that will have 3 rows. Start by translating the message into numbers using the correspondence above. Suppose we want to encode the message “SECRET CODE”. We will use the matrix A below as the encoding matrix for our message.Įnter the encoding matrix A in your spreadsheet and label it. Below is a table of each letter and its corresponding number. Then, we could translate any verbal message into a string of numbers from 0 to 26. To begin with, we could assign the numbers 1-26 to the letters of the alphabet and assign the number 0 to a space between words. Matrices can be used to encode and decode messages.
