Eccentricity of ellipse from axes lengths

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


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


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