The following Matlab project contains the source code and Matlab examples used for the shortest distance from a point to ellipsoid .
Compute The shortest distance from a point to Triaxial Ellipsoid or Biaxial Ellipsoid or Sphere
x/a)^2+(y/b)^2+(z/c)^2=1 Triaxial Ellipsoid Equation centered at the
origin
Parameters:
* X, [x y z] - A point Cartesian coordinates data, n x 3 matrix or three n x 1 vectors
* axis,[a; b; c] - ellipsoid radii [a; b; c],its axes % along [x y z] axes
For Triaxial ellipsoid ,it must be a > b > c