Main Content

axes2ecc

Eccentricity of ellipse from axes lengths

Support for nonscalar input, including the syntax ecc = axes2ecc(vec), will be removed in a future release.

Syntax

ecc = axes2ecc(semimajor,semiminor)
ecc = axes2ecc(vec)

Description

ecc = axes2ecc(semimajor,semiminor) computes the eccentricity of an ellipse (or ellipsoid of revolution) given the semimajor and semiminor axes. The input data can be scalar or matrices of equal dimensions.

ecc = axes2ecc(vec) assumes a 2 element vector (vec) is supplied, where vec = [semimajor semiminor].

Introduced before R2006a