This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


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