%% Create spherical harmonic gravity4
%% Create spherical harmonic gravity4
% Calculate the gravity at 25000 meters over the south pole of Earth using a 120th order EIGEN-GL04C Earth model with warning actions.

p  = [0 0 -6381.751e3]
[gx, gy, gz] = gravitysphericalharmonic( p, 'EIGENGL04C', ...
120, 'Warning' )

% Copyright 2015 The MathWorks, Inc.