Magnetic field of coils
Version 1.0.4 (1.62 MB) by
Duncan Carlsmith
Profiles the magnetic field along a selectable curve for a helical (solenoidal or toroidal) current loop using the Biot-Savart law.
Profiles the magnetic field along a selectable curve for a helical (solenoidal or toroidal) current loop using the Biot-Savart law. The Biot-Savart line integral is represented first symbolically in terms of a parametric path in three dimensions, then converted to a function of the parameter and integrated numerically. The results are compared to analytic results for an ideal solenoid or toroid.
Cite As
Duncan Carlsmith (2023). Magnetic field of coils (/matlabcentral/fileexchange/107874-magnetic-field-of-coils), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2021b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.