Matrix Coding & Decoding

Edith Aguirre, El Paso Community College, Mathematics

Author Profile
Initial Publication Date: October 10, 2024

Summary

The activity provides students with a 3x3 matrix key that will be used to code and decode messages. Students will use MatLab to code, and matrix multiplication to encrypt a message. Then their encrypted message will be randomly given to another group (and their key matrix) to decode the message using matrix inverses and matrix multiplication.

Share your modifications and improvements to this activity through the Community Contribution Tool »

Learning Goals

Student will learn how to code a matrix and learn how easy it is to multiply two matrixes together with the use of technology(MatLab). MatLab is used to make their time efficient during the lab to complete the task of coding and decoding the message using matrix multiplication and matrix inverses. Students will need to know other skills, such as how to write a complete sentence and know the English alphabet.

Context for Use

This is for a freshmen college course enrolled in a 2-year community college. The activity will be done during their one lab hour per week. The amount of time, to code the message will be one hour, and the next week, will be the decoded message activity. Students need to know how to program a matrix in MATLAB and how to multiply and find the inverse of a 3x3 matrix in MATLAB.Students should already know how to manually do matrix multiplication and how to find an inverse of a square matrix. This activity may be difficult for the first day, because students have not used MATLAB in this course. That's why the coding instructions are found in the handout. The message will be short enough to have time to do this through manual computations, but it would be time-consuming, so using technology will be appropriate to finish it on time.

Description and Teaching Materials

The additional files are to learn how to type a matrix in MATLAB, how to find the inverse, and how to do matrix multiplication in MATLAB for efficiency.
2Day-LAB for Coding-Decoding Message (Acrobat (PDF) 157kB Oct9 24) 
MatLab-TechHelpforMatrixOperationsforABoveLabActivity (Acrobat (PDF) 52kB Oct9 24) 

Teaching Notes and Tips

The lab activity along with the MATLAB Tech Help instructions are attached.


Assessment

Submitting an encrypted message and Key matrix for Day 1 will be the correct answer to determine if they have met the goals of this assignments.
For day 2, they must submit the decrypted message based on the key matrix given by other team.

References and Resources

For the tech tool handout, I used MathWorks Help Center website (https://www.mathworks.com/help/matlab).