Skip to content

Interactive courseware enhancing the learning of electricity and magnetism, focusing on capacitors and DC motors with examples and visuals.

License

Notifications You must be signed in to change notification settings

MathWorks-Teaching-Resources/Electricity-Magnetism

Repository files navigation

Electricity & Magnetism: Introduction

View on File Exchange or Open in MATLAB Online

MATLAB Versions Tested

Curriculum Module

Created with R2024a. Compatible with R2024a and later releases.

Information

This curriculum module contains interactive MATLAB® live scripts that provides supplementary examples and visualizations to enhance understanding of electricity and magnetism principles, specifically focusing on common application like capacitors and DC motors.

Background

These live scripts can be used as demonstrations in lectures, class activities, or interactive assignments outside class. This module covers electric fields and charge, magnetic fields and current, and the governing physical equations of electricity and magnetism. It also includes examples of applications like DC motors, capacitors, and magnetic braking.

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 image_0.png 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 teaching resources team if you would like to provide feedback, or if you have a question.

Prerequisites

This module assumes knowledge of basic calculus and introductory physics, including mechanics and fundamental concepts of electricity and magnetism.

Getting Started

Accessing the Module

On MATLAB Online:

Use the image_1.png 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 emag.prj. 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 image_2.png Add-Ons > Get Add-Ons.

Products

MATLAB® is used throughout the module along with the following products:

Simulink®

Symbolic Math Toolbox™

Simscape™

Scripts

Capacitors series

image_3.svg
CapacitorsFundamental.mlx
In this script, students will...
$\bullet$ Explore the fundamental principles and applications of capacitors in electrical circuits.
$\bullet$ Analyze the relationship between capacitors and electric fields, including their role in storing and releasing electrical energy.
image_4.png
CapacitorsChargeDischarge.mlx
In this script, students will...
$\bullet$ Analyze energy storage in capacitors and evaluate its applications in circuits.
$\bullet$ Simulate the charge and discharge of capacitors to demonstrate their role.

License

The license for this module is available in the LICENSE.md.

Related Courseware Modules

image_5.png
Available on:
image_6.png
image_7.png
GitHub

image_8.png
Available on:
image_9.png
image_10.png
GitHub

Or feel free to explore our other modular courseware content.

Educator Resources

Contribute

Looking for more? Find an issue? Have a suggestion? Please contact the MathWorks teaching resources team. If you want to contribute directly to this project, you can find information about how to do so in the CONTRIBUTING.md page on GitHub.

© Copyright 2025 The MathWorks, Inc

About

Interactive courseware enhancing the learning of electricity and magnetism, focusing on capacitors and DC motors with examples and visuals.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages