https://github.com/mathworks-teaching-resources/applied-linear-algebra
A collection of teaching scripts showing applications of linear algebra to chemistry, computer science, mechanical engineering, and more.
https://github.com/mathworks-teaching-resources/applied-linear-algebra
Last synced: 12 months ago
JSON representation
A collection of teaching scripts showing applications of linear algebra to chemistry, computer science, mechanical engineering, and more.
- Host: GitHub
- URL: https://github.com/mathworks-teaching-resources/applied-linear-algebra
- Owner: MathWorks-Teaching-Resources
- License: bsd-3-clause
- Created: 2023-10-09T21:19:57.000Z (over 2 years ago)
- Default Branch: release
- Last Pushed: 2024-08-23T22:14:35.000Z (almost 2 years ago)
- Last Synced: 2024-08-23T23:28:30.930Z (almost 2 years ago)
- Language: MATLAB
- Size: 50.9 MB
- Stars: 13
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Applied Linear Algebra
[](https://www.mathworks.com/matlabcentral/fileexchange/136364-applied-linear-algebra) or [](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Applied-Linear-Algebra&project=AppliedLinAlg.prj&file=README.mlx)
[](https://MathWorks-Teaching-Resources.github.io/Applied-Linear-Algebra)
**Curriculum Module**
_Created with R2024a. Compatible with R2024a and later releases._
# Information
This curriculum module contains interactive [MATLAB® live scripts](https://www.mathworks.com/products/matlab/live-editor.html) that apply fundamental concepts and basic terminology related to linear algebra. There is a focus on identifying applications of linear algebra to academic disciplines beyond mathematics.
## Background
You can use this live script as demonstrations in lectures, class activities, or interactive assignments outside class. Applied Linear Algebra covers topics from a first course in linear algebra including vector and matrix arithmetic, solving matrix equations, null spaces, eigenvalues, and eigenvectors. Applications include balancing chemical reactions, solving static force scenarios, encryption, systems modeling, and explainable machine learning.
The instructions inside the live scripts will guide you through the exercises and activities. Get started with each live script by running it one section at a time. To stop running the script or a section midway (for example, when an animation is in progress), use the
Stop button in the **RUN** section of the **Live Editor** tab in the MATLAB Toolstrip.
## Contact Us
Solutions are available upon instructor request. Contact the [MathWorks online teaching team](mailto:onlineteaching@mathworks.com) if you would like to request solutions or have a question.
## Prerequisites
These scripts assume knowledge of basic linear algebra such as vectors, matrices, eigenvalues, and eigenvectors, as discussed in the related courseware on matrix methods. The focus of these scripts is on reinforcing the theoretical knowledge of linear algebra concepts by applying them in a variety of domains. There is minimal MATLAB knowledge required for these scripts, but you could use [MATLAB Onramp](https://matlabacademy.mathworks.com/details/matlab-onramp/gettingstarted) as a resource to acquire familiarity with live scripts and MATLAB syntax.
# Getting Started
## Accessing the Module
### **On MATLAB Online:**
Use the [
](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Applied-Linear-Algebra&project=AppliedLinAlg.prj) link to download the module. You will be prompted to log in or create a MathWorks account. The project will be loaded, and you will see an app with several navigation options to get you started.
### **On Desktop:**
Download or clone this repository. Open MATLAB, navigate to the folder containing these scripts and double\-click on [AppliedLinAlg.prj](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Applied-Linear-Algebra&project=AppliedLinAlg.prj&file=README.mlx). It will add the appropriate files to your MATLAB path and open an app that asks you where you would like to start.
Ensure you have all the required products (listed below) installed. If you need to include a product, add it using the Add\-On Explorer. To install an add\-on, go to the **Home** tab and select
**Add-Ons** > **Get Add-Ons**.
## **Working through the module:**
1. In the opening app, select "Main Menu" to open a brief hyperlinked navigation page or "README" to open this page. To give us feedback, select "Feedback".
2. Get started with each topic by clicking the link to open the live script. The instructions inside each live script will walk you through the live script and related functions.
## Products
MATLAB® is used throughout. Tools from the Symbolic Math Toolbox™ are used frequently as well. The sevilla.jpg image in Steganography.mlx comes from the Image Processing Toolbox™. The IdentifyDigits and ReadMyWriting scripts use both the Image Processing Toolbox™, and the Statistics and Machine Learning Toolbox™. IdentifyDigits also uses the Deep Learning Toolbox™ while ReadMyWriting uses MATLAB Mobile.
# Scripts
## [BalancingChemicalEquations](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Applied-Linear-Algebra&project=AppliedLinAlg.prj&file=Scripts/BalancingChemicalEquations.mlx)
| | | |
| :-- | :-- | :-- |
| Chemical reactions
| **In this script, students will...**
| **Academic disciplines**
|
|
| • build and solve matrix equations
• identify the rank and null spaces of matrices
• balance chemical reactions
| • Chemistry
• Mathematics
|
| | | |
## [MarkovModeling](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Applied-Linear-Algebra&project=AppliedLinAlg.prj&file=Scripts/MarkovModeling.mlx)
| | | |
| :-- | :-- | :-- |
| Zombie outbreak
| **In this script, students will...**
| **Academic disciplines**
|
|
| • compute powers of transition matrices
• compute eigenvalues and eigenvectors and explain their meaning in a modeling context
• create a model of a zombie outbreak
• analyze real\-world scenarios for mayflies and HIV
| • Biology
• Mathematics
|
| | | |
## [Steganography](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Applied-Linear-Algebra&project=AppliedLinAlg.prj&file=Scripts/Steganography.mlx)
| | | |
| :-- | :-- | :-- |
| Image encryption
| **In this script, students will...**
| **Academic disciplines**
|
|
| • use matrix arithmetic
• represent images and text as matrices
• encrypt images inside other images
| • Computer Science
• Mathematics
|
| | | |
## [StaticForces](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Applied-Linear-Algebra&project=AppliedLinAlg.prj&file=Scripts/StaticForces.mlx) and [Moments](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Applied-Linear-Algebra&project=AppliedLinAlg.prj&file=Scripts/Moments.mlx)
| | | |
| :-- | :-- | :-- |
| Static force analysis
| **In these scripts, students will...**
| **Academic disciplines**
|
|
| • define and normalize vectors
• build and solve matrix equations
• calculate dot products and cross products
• solve for moments, tensions, and forces
| • Civil Engineering
• Mechanical Engineering
• Mathematics
|
| | | |
## [Identify Digits](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Applied-Linear-Algebra&project=AppliedLinAlg.prj&file=Scripts/IdentifyDigits.mlx) and [ReadMyWriting](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Applied-Linear-Algebra&project=AppliedLinAlg.prj&file=Scripts/ReadMyWriting.mlx)
| | | |
| :-- | :-- | :-- |
| Machine learning
| **In these scripts, students will...**
| **Academic disciplines**
|
|
| • use singular value decomposition and distance
• use binary morphology tools to preprocess image data
• create a tool that will identify handwritten digits
| • Computer Science
• Mathematics
|
| | | |
## [Robotics](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Applied-Linear-Algebra&project=AppliedLinAlg.prj&file=Scripts/Robotics.mlx)
| | | |
| :-- | :-- | :-- |
| Robotic manipulators
| **In this script, students will...**
| **Academic disciplines**
|
|
| • compute the Cartesian result of a sum of polar vectors
• explore the concept of a configuration space through visualizations
• explain the connection between degrees of freedom, multiplicity of solutions, and the null space
| • Mechanical engineering
• Mathematics
|
| | | |
# License
The license for this module is available in the [LICENSE.md](https://github.com/MathWorks-Teaching-Resources/Applied-Linear-Algebra/blob/release/LICENSE.md).
# Related Courseware Modules
- [Matrix Methods of Linear Algebra](https://github.com/MathWorks-Teaching-Resources/Matrix-Methods-of-Linear-Algebra) is available on [GitHub](https://github.com/MathWorks-Teaching-Resources/Matrix-Methods-of-Linear-Algebra) or [
](https://www.mathworks.com/matlabcentral/fileexchange/94730-matrix-methods-of-linear-algebra) or [
](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Matrix-Methods-of-Linear-Algebra&project=MatrixMethods.prj)
- [Vector Arithmetic](https://github.com/MathWorks-Teaching-Resources/Vector-Arithmetic) is available on [GitHub](https://github.com/MathWorks-Teaching-Resources/Vector-Arithmetic) or [
](https://www.mathworks.com/matlabcentral/fileexchange/94555-vector-arithmetic) or [
](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Vector-Arithmetic&file=vectorBasics.mlx)
Or feel free to explore our other [modular courseware content](https://www.mathworks.com/matlabcentral/fileexchange/?q=tag%3A%22courseware+module%22&sort=downloads_desc_30d).
# Educator Resources
- [Educator Page](https://www.mathworks.com/academia/educators.html)
# Contribute
Looking for more? Find an issue? Have a suggestion? Please contact the [MathWorks teaching resources team](mailto:%20onlineteaching@mathworks.com). If you want to contribute directly to this project, you can find information about how to do so in the [CONTRIBUTING.md](https://github.com/MathWorks-Teaching-Resources/Applied-Linear-Algebra/blob/release/CONTRIBUTING.md) page on GitHub.
© *Copyright 2023 The MathWorks, Inc.*