File Exchange

image thumbnail

Electromagnetic Field Demo

version (24.3 KB) by Robyn Jackey
Visualization of the electromagnetic field induced by current in a straight wire.


Updated 01 Sep 2016

View License

This GUI provides a visualization of the electromagnetic field induced by a current flowing in a straight wire. The tool also shows the current induced by a rectangular coil that is placed inside the electromagnetic field. The current is calculated using Ampere's Law and the Biot-Savart Law. This demo was created for educational demonstrations.
The user can modify the size and position of the coil, as well as the resistance. The current waveform and magnitude can also be specified.

Cite As

Robyn Jackey (2020). Electromagnetic Field Demo (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)


Updated license

Fixed a graphics bug if you clicked on the top axes before adjusting other settings.

Updated copyrights for BSD license.

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux