The Magnetic Field Made By A Ring Of Current - Enter Value

This code finds the magnetic field from coordinates entered by you.
389 Downloads
Updated 9 Oct 2013

View License

This program finds the Linear and Radial magnetic field coming from a single ring. It works by you entering the distance from the center of the ring (Z) and the distance away from the centerline (Rho). If you enter zero you will get a N/A.

The ring has a radius of :0.127 (Meters)
The ring is placed along the Y axis
The ring has :20000 (AmpTurns)

The user must enter these coordinates:
Z Distance? (Meters)0.1
Rho Distance? (Meters)0.1

Output:
Radial Magnetic Field (Gauss):
-629.3067

Linear Magnetic Field (Gauss):
306.5390

Cite As

Matthew Moynihan (2024). The Magnetic Field Made By A Ring Of Current - Enter Value (https://www.mathworks.com/matlabcentral/fileexchange/43847-the-magnetic-field-made-by-a-ring-of-current-enter-value), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Physics in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Single Ring - Enter Value - WORKS/

Version Published Release Notes
1.0.0.0