Main Content

majaxis

Semimajor axis of ellipse

    Description

    a = majaxis(semiminor,e) computes the semimajor axis length a of an ellipse or an ellipsoid of revolution given the semiminor axis length semiminor and eccentricity e.

    example

    Examples

    collapse all

    Find the semimajor axis length of an ellipse from the eccentricity and length of the semiminor axis.

    a = majaxis(6356752,0.0818)
    a = 
    6.3781e+06
    

    Input Arguments

    collapse all

    Semiminor axis length, specified as a numeric scalar.

    Eccentricity of the ellipse, specified as a numeric scalar. The value of e must be in the range [0, 1).

    Data Types: single | double

    Output Arguments

    collapse all

    Semimajor axis length, returned as a numeric scalar. The units of a are the same as those of semiminor.

    Version History

    Introduced before R2006a

    expand all