Main Content

axes2ecc

Eccentricity of ellipse from axes lengths

    Description

    example

    ecc = axes2ecc(semimajor,semiminor) computes the eccentricity ecc of an ellipse or an ellipsoid of revolution given the semimajor and semiminor axes lengths.

    Examples

    collapse all

    Find the eccentricity of an ellipse from the lengths of the semimajor and semiminor axes.

    ecc = axes2ecc(6378137,6356752)
    ecc = 0.0818
    

    Input Arguments

    collapse all

    Semimajor axis length, specified as a positive numeric scalar. The value of semimajor must be greater than that of semiminor.

    Data Types: double

    Semiminor axis length, specified as a positive numeric scalar. The value of semiminor must be less than that of semimajor.

    Data Types: double

    Output Arguments

    collapse all

    Eccentricity of the ellipse, returned as a numeric scalar in the range [0, 1].

    Version History

    Introduced before R2006a

    expand all