%% Calculate the magnetic model 1000 meters over Natick, Massachusetts using WMM-2020
% This example shows how to calculate the magnetic model 1000 meters over Natick, Massachusetts on July 4, 2020, using WMM-2020.

[XYZ, H, DEC, DIP, F] = wrldmagm(1000, 42.283, -71.35, decyear(2020,7,4),'2020')

% Copyright 2012 The MathWorks, Inc.