I am working on a Matlab sim and I need to find the shorted distance of a point to an Elliposid surface.
The point is defined as [X,Y,Z].
Elliposid center is defined as [Xc,Yc,Zc]
Ellipsoid is defined as
A B C
E F G
H I J
(I don't if that's sufficient information for ellipsoid...