# The shortest distance from a point to ellipsoid in matlab

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 For Biaxial ellipsoid ,it must be a = b > c For Sphere ,it must be a = b = c  Output:  * Xo,[xo yo zo] - Cartesian coordinates of Point onto ellipsoid   * dis : shortest distance  Author:  Sebahattin Bektas, 19 Mayis University, Samsun  sbektas@omu.

The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

File NameSize