flat2ecc.m 249 Bytes
Newer Older
Valentin Platzgummer's avatar
Valentin Platzgummer committed
1 2 3 4 5 6 7 8 9 10 11 12
function e = flat2ecc(f)
%FLAT2ECC   Convert flattening to eccentricity
%
%   e = FLAT2ECC(f)
%
%   returns the eccentricity of an ellipsoid given the flattening.
%
%   See also ECC2FLAT.

  narginchk(1, 1)
  e = sqrt(f .* (2 - f));
end