%% Calculate normal and tangential gravity with Exact method
% This example shows how to calculate the normal and tangential gravity at 1000 meters, 0 degrees latitude, and 20 degrees longitude using the Exact method with atmosphere, centrifugal effects, and no precessing, with warnings for out-of-range inputs.

[gn, gt] = gravitywgs84( 1000, 0, 20, 'Exact')

% Copyright 2012 The MathWorks, Inc.