Main Content


Semimajor axis of ellipse

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


a = majaxis(semiminor,e)
a = majaxis(vec)


a = majaxis(semiminor,e) computes the semimajor axis of an ellipse (or ellipsoid of revolution) given the semiminor axis and eccentricity. The input data can be scalar or matrices of equal dimensions.

a = majaxis(vec) assumes a 2 element vector (vec) is supplied, where vec = [semiminor, e].

Introduced before R2006a