Help Center
Eccentricity of ellipse from flattening
ecc = flat2ecc(f)
ecc = flat2ecc(f) computes the eccentricity of an ellipse or an ellipsoid of revolution given the flattening f.
ecc
f
example
collapse all
Find the eccentricity of an ellipse from the flattening.
ecc = flat2ecc(0.0034)
ecc = 0.0824
Flattening, specified as a numeric scalar.
Data Types: single | double
single
double
Eccentricity of the ellipse, returned as a numeric scalar in the range [0, 1].
expand all
The flat2ecc function will not accept vectors or matrices as input in a future release. To update your code, specify a numeric scalar instead.
flat2ecc
axes2ecc
ecc2flat
n2ecc
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office