Magnetic Field of Bar Magnet
Version 1.0.2 (538 KB) by
Duncan Carlsmith
Calculates the magnetic field in an air gap between poles tips of long uniformly magnetized cylinders.
Calculates the magnetic field in an air gap between poles tips of long uniformly magnetized cylinders numerically using a monopole surface charge density approach and compares to a point-like magnetic monopole approximation.
Cite As
Duncan Carlsmith (2024). Magnetic Field of Bar Magnet (https://www.mathworks.com/matlabcentral/fileexchange/108009-magnetic-field-of-bar-magnet), 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.