Trying to create a referenceEllipsoid for a fantasy exoplanet. How do I get a valid value for input number 1, 'name', that is not on the list of referenceEllipsoid values?
Show older comments
% Calculate referenceEllipsoid for the fantasy exoplanet Darodar; with
% SemiMajor Axis(aD) = 2400000 meters, SemiMinor Axis(bD) = 2392000 meters,
% Eccentricity(eccD) = 0.082, Flattening(fD) = 0.0033
aD = 2400000; % SemiMajor Axis of Darodar
eccD = 0.082; % Eccentricity of Darodar
nameEllipsoid = referenceEllipsoid('name') % Display Original Default Values
nameEllipsoid.SemimajorAxis = aD;
nameEllipsoid.Eccentricity = eccD
name = nameEllipsoid('kilometer');
aD = 2400000; % SemiMajor Axis of Darodar
eccD = 0.082; % Eccentricity of Darodar
darodarEllipsoid = referenceEllipsoid('darodar') % Display Original Default Values
darodarEllipsoid.SemimajorAxis = aD;
darodarEllipsoid.Eccentricity = eccD
Expected input number 1, NAME, to match one of these values:
'unitsphere', 'sphere', 'grs80', 'wgs84', 'everest', 'bessel', 'airy1830', 'airy1849', 'clarke66',
'clarke80', 'international', 'krasovsky', 'wgs72', 'wgs60', 'iau65', 'wgs66', 'iau68', 'earth', 'sun',
'moon', 'mercury', 'venus', 'mars', 'jupiter', 'saturn', 'uranus', 'neptune', 'pluto', 'Unit Sphere',
'Sphere', 'GRS 1980', 'WGS 84', 'Everest 1830 (1937 Adjustment)', 'Bessel 1841', 'Airy 1830', 'Airy
Modified 1849', 'Clarke 1866', 'Clarke 1880 (RGS)', 'International 1924', 'Krassowsky 1940', 'WGS 72',
'World Geodetic System 1960', 'International Astronomical Union 1965', 'World Geodetic System 1966',
'International Astronomical Union 1968', 'WGS 84', 'Sun', 'Moon', 'Mercury', 'Venus', 'Mars', 'Jupiter',
'Saturn', 'Uranus', 'Neptune', 'Pluto'
The input, 'darodar', did not match any of the valid values.
Answers (1)
Star Strider
on 23 Apr 2026
Edited: Star Strider
on 23 Apr 2026
The only reference I can find for 'darodar' has to do with a spam referrer. (Perhaps choose another name?)
That aside, if 'darodar' is your exoplanet's name, you most likely have to create it as 'Unit Sphere' and then create valid data for it, using the approach I outlined in my answer to your previous question (that seems to be quoted here in part). You can probably save your 'darodar' exoplanet with all its data in a .mat file so you can just load it without recoding it each time.
darodar = referenceEllipsoid;
darodar.LengthUnit = 'meter';
darodar.SemimajorAxis = 2400000;
darodar.SemiminorAxis = 2392000;
darodar.Eccentricity = 0.082
darodar.Flattening
darodar.Flattening = 0.0033
So apparently, it's not possible to set some of them.
EDIT -- (23 Apr 2026 at 23:47)
Added 'darodar' and its desired properties.
.
Categories
Find more on Coordinate Reference Systems in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!