Main Content

ecc2flat

Flattening of ellipse from eccentricity

Support for nonscalar input, including the syntax f = ecc2flat(ellipsoid), will be removed in a future release.

Syntax

f = ecc2flat(ecc)
f = ecc2flat(ellipsoid)

Description

f = ecc2flat(ecc) computes the flattening of an ellipse (or ellipsoid of revolution) given its eccentricity ecc. Except when the input has 2 columns (or is a row vector), each element is assumed to be an eccentricity and the output f has the same size as ecc.

f = ecc2flat(ellipsoid), where ellipsoid has two columns (or is a row vector), assumes that the eccentricity is in the second column, and a column vector is returned.

Introduced before R2006a