{"id":21478399,"url":"https://github.com/mathworks-teaching-resources/vector-arithmetic","last_synced_at":"2025-07-15T11:30:52.495Z","repository":{"id":109701270,"uuid":"378966319","full_name":"MathWorks-Teaching-Resources/Vector-Arithmetic","owner":"MathWorks-Teaching-Resources","description":"Interactive courseware module that addresses the fundamentals of vectors taught in mathematics courses.","archived":false,"fork":false,"pushed_at":"2024-04-30T16:50:51.000Z","size":16276,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"release","last_synced_at":"2024-04-30T17:57:54.113Z","etag":null,"topics":["mathematics","matlab","matlab-live-script","vector-math"],"latest_commit_sha":null,"homepage":null,"language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MathWorks-Teaching-Resources.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-21T14:51:38.000Z","updated_at":"2024-04-30T16:50:55.000Z","dependencies_parsed_at":"2024-05-07T04:15:20.481Z","dependency_job_id":null,"html_url":"https://github.com/MathWorks-Teaching-Resources/Vector-Arithmetic","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FVector-Arithmetic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FVector-Arithmetic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FVector-Arithmetic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FVector-Arithmetic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MathWorks-Teaching-Resources","download_url":"https://codeload.github.com/MathWorks-Teaching-Resources/Vector-Arithmetic/tar.gz/refs/heads/release","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226033509,"owners_count":17563175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mathematics","matlab","matlab-live-script","vector-math"],"created_at":"2024-11-23T11:18:02.141Z","updated_at":"2024-11-23T11:18:02.809Z","avatar_url":"https://github.com/MathWorks-Teaching-Resources.png","language":"MATLAB","readme":"\u003ca name=\"T_DEF03274\"\u003e\u003c/a\u003e\n# \u003cspan style=\"color:rgb(213,80,0)\"\u003eVector Arithmetic\u003c/span\u003e\n\u003ca name=\"H_053613DF\"\u003e\u003c/a\u003e\n\n[![View on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/94555-vector-arithmetic) or [![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Vector-Arithmetic\u0026project=VectorArithmetic.prj\u0026file=README.mlx)\n\n![MATLAB Versions Tested](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2FMathWorks-Teaching-Resources%2FVector-Arithmetic%2Frelease%2FImages%2FTestedWith.json)\n\n**Curriculum Module**\n\n_Created with R2020b. Compatible with R2020b and later releases._\n\n# Information\n\nThis curriculum module contains interactive [MATLAB® live scripts](https://www.mathworks.com/products/matlab/live-editor.html) that teach the fundamental concepts of vectors, such as vector magnitude and addition.\n\n\u003ca name=\"H_F00D98E4\"\u003e\u003c/a\u003e\n## Background\n\nYou can use these live scripts as demonstrations in lectures, class activities, or interactive assignments outside class. [\u003csamp\u003eVectorBasics\u003c/samp\u003e](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Vector-Arithmetic\u0026project=VectorArithmetic.prj\u0026file=Scripts/VectorBasics.mlx) is an interactive lesson that teaches the basics of individual vectors, such as vector components, vector magnitude, and vector orientation. [\u003csamp\u003eVectorArithmetic\u003c/samp\u003e](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Vector-Arithmetic\u0026project=VectorArithmetic.prj\u0026file=Scripts/VectorArithmetic.mlx) is an interactive lesson that teaches vector arithmetic. Vector addition, scalar multiplication, dot product, and cross product are discussed. These methods are motivated by an application: calculating the orientation of a cell phone using the built-in accelerometer and magnetometer. Throughout the module, students apply the mathematical techniques to computing meaningful values, such as pitch and yaw.\n\n\nThe 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 \u003cimg src=\"Images/EndIcon.png\" width=\"19\" alt=\"EndIcon.png\"\u003e Stop button in the **RUN** section of the **Live Editor** tab in the MATLAB Toolstrip.\n\n## Contact Us\n\nSolutions are available upon instructor request. Contact the [MathWorks teaching resources team](mailto:onlineteaching@mathworks.com) if you would like to request solutions, provide feedback, or if you have a question.\n\n\u003ca name=\"H_30BC7141\"\u003e\u003c/a\u003e\n## Prerequisites\n\nThis module assumes knowledge of high school algebra and trigonometry. It does not assume any MATLAB knowledge. All scripts are intended to be used in Hidden Code mode. \n\n\u003ca name=\"H_330E72C3\"\u003e\u003c/a\u003e\n## Getting Started\n### Accessing the Module\n### **On MATLAB Online:**\n\nUse the  [\u003cimg src=\"Images/OpenInMO.png\" width=\"136\" alt=\"OpenInMO.png\"\u003e](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Vector-Arithmetic\u0026project=VectorArithmetic.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.\n\n### **On Desktop:**\n\nDownload or clone this repository. Open MATLAB, navigate to the folder containing these scripts and double-click on [VectorArithmetic.prj](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Vector-Arithmetic\u0026project=VectorArithmetic.prj). It will add the appropriate files to your MATLAB path and open an app that asks you where you would like to start. \n\n\nEnsure you have all the required products ([listed below](#H_E850B4FF)) 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  \u003cimg src=\"Images/AddOnsIcon.png\" width=\"16\" alt=\"AddOnsIcon.png\"\u003e **Add-Ons** \u003e **Get Add-Ons**. \n\n\u003ca name=\"H_E850B4FF\"\u003e\u003c/a\u003e\n## Products\n\nMATLAB® and Symbolic Math Toolbox™ are used throughout this module.\n\n\u003ca name=\"H_E8C62B23\"\u003e\u003c/a\u003e\n# Scripts\n## [**VectorBasics.mlx**](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Vector-Arithmetic\u0026project=VectorArithmetic.prj\u0026file=Scripts/VectorBasics.mlx) \n|  | **In this script, students will...**  |\n| :-- | :-- |\n| \u003cimg src=\"Images/image_3.png\" width=\"171\" alt=\"image_3.png\"\u003e | \u003cul\u003e\u003cli\u003e  Relate the components of a vector to its visualization in 2- and 3-dimensions  \u003cli\u003e  Compute the magnitude of a vector in 2- and 3-dimensions  \u003cli\u003e  Compute the orientation of a vector in 2-dimensions  \u003cli\u003e  Discuss the meaning of the magnitude of an accelerometer reading  \u003cli\u003e  Relate the pitch of a cell phone to accelerometer readings \u003c/ul\u003e |\n|||\n\n## [**VectorArithmetic.mlx**](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Vector-Arithmetic\u0026project=VectorArithmetic.prj\u0026file=Scripts/VectorArithmetic.mlx) \n\n\n|  | **In this script, students will...**  |\n| :-- | :-- |\n| \u003cimg src=\"Images/image_4.png\" width=\"171\" alt=\"image_4.png\"\u003e | \u003cul\u003e\u003cli\u003e  Add and subtract vectors  \u003cli\u003e  Compute scalar, dot, and cross products of vectors  \u003cli\u003e  Relate arithmetic vector operations to visual representations  \u003cli\u003e Identify the physical meaning of the results of arithmetic vector operations  \u003cli\u003e  Apply vector arithmetic to compute the yaw of a cell phone  |\n|      |       |\n\n\u003ca name=\"H_F61733D7\"\u003e\u003c/a\u003e\n# License\n\nThe license for this module is available in the [LICENSE.md](https://github.com/MathWorks-Teaching-Resources/Vector-Arithmetic/blob/release/LICENSE.md).\n\n# Related Courseware Modules\n|      |      |      |\n| :-- | :-- | :-- |\n| **Courseware Module** | **Sample Content** | **Available on:**  |\n| [**Matrix Methods of Linear Algebra**](https://www.mathworks.com/matlabcentral/fileexchange/94730-matrix-methods-of-linear-algebra) | \u003cimg src=\"Images/image_5.png\" width=\"171\" alt=\"image_5.png\"\u003e |  [\u003cimg src=\"Images/OpenInFX.png\" width=\"91\" alt=\"OpenInFX.png\"\u003e](https://www.mathworks.com/matlabcentral/fileexchange/94730-matrix-methods-of-linear-algebra)  [\u003cimg src=\"Images/OpenInMO.png\" width=\"136\" alt=\"OpenInMO.png\"\u003e](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Matrix-Methods-of-Linear-Algebra\u0026project=MatrixMethods.prj\u0026file=README.mlx) [GitHub](https://github.com/MathWorks-Teaching-Resources/Matrix-Methods-of-Linear-Algebra)  |\n| [**Applied Linear Algebra**](https://www.mathworks.com/matlabcentral/fileexchange/136364-applied-linear-algebra) | \u003cimg src=\"Images/image_8.png\" width=\"171\" alt=\"image_8.png\"\u003e |  [\u003cimg src=\"Images/OpenInFX.png\" width=\"91\" alt=\"OpenInFX.png\"\u003e](https://www.mathworks.com/matlabcentral/fileexchange/136364-applied-linear-algebra)   [\u003cimg src=\"Images/OpenInMO.png\" width=\"136\" alt=\"OpenInMO.png\"\u003e](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Applied-Linear-Algebra\u0026project=AppliedLinAlg.prj\u0026file=README.mlx) [GitHub](https://github.com/MathWorks-Teaching-Resources/Applied-Linear-Algebra)  |\n|      |      |       |\n\n\nOr feel free to explore our other [modular courseware content](https://www.mathworks.com/matlabcentral/fileexchange/?q=tag%3A%22courseware+module%22\u0026sort=downloads_desc_30d).\n\n# Educator Resources\n-  [Educator Page](https://www.mathworks.com/academia/educators.html) \n\u003ca name=\"H_0FA5DA18\"\u003e\u003c/a\u003e\n# Contribute \n\nLooking 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/Vector-Arithmetic/blob/release/CONTRIBUTING.md) page on GitHub.\n\n\n© Copyright 2023 The MathWorks™, Inc\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks-teaching-resources%2Fvector-arithmetic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathworks-teaching-resources%2Fvector-arithmetic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks-teaching-resources%2Fvector-arithmetic/lists"}