--- ecef2geodetic.m	2020-04-03 11:56:36.208249959 +0000
+++ ecef2geodetic.m	2020-04-08 18:02:36.819459099 +0000
@@ -91,6 +91,8 @@
   
   if isempty(spheroid)
     E = wgs84Ellipsoid;
+  elseif (isstruct (spheroid))
+    E = spheroid;
   else
     E = referenceEllipsoid (spheroid);
   endif 
