makeIGRF - create 'igrfcoefs.mat' for IGRF
Version 1.0.0 (1.73 KB) by
Mate Tomasik
Create 'igrfcoefs.mat' file for using Drew Compston's IGRF modell
Make 'igrfcoefs.mat' file from downloaded igrf modells (in .txt format) for using it in igrf() matlab function:
Modell can be downloaded from here (.txt format):
https://www.ngdc.noaa.gov/IAGA/vmod/igrf_old_models.html
igrf matlab functions (Drew Compston's IGRF modell):
https://www.mathworks.com/matlabcentral/fileexchange/34388-international-geomagnetic-reference-field-igrf-model
Input: file location eg. 'igrf13coeffs.txt'
Output: creates 'igrfcoefs.mat' file in current folder
'igrfcoefs.mat' file should be placed in the folder where igrf will be used
Cite As
Mate Tomasik (2025). makeIGRF - create 'igrfcoefs.mat' for IGRF (https://in.mathworks.com/matlabcentral/fileexchange/126854-makeigrf-create-igrfcoefs-mat-for-igrf), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2023a
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.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |