MATLAB: Extract surface coordinates from ellipsoid function

coordinatesellipsoidextractxyz

Hi
I'm trying to model a rotating ellipsoid and extract the line-of-sight velocity from specific points on the surface.
Ive created an ellipse using the ellipsoid() function. I now need to extract the XYZ values of specified points on the surface. the [x, y, z] returned by ellipsoid() are in a square matrix however rather than an nx3 set of points which is what I need.

Best Answer

Hi LW,
After you get x,y, and z, try
A = [x(:),y(:),z(:)]