-------------------------------------------------------------------------- Calculates an ellipsoid given the ellipsoid matrix, semimajor axes, the unit vectors along the axes and the number of patches It is similar to the sphere function from Matlab -------------------------------------------------------------------------- Form: [x, y, z] = Ellipsoid( s, u, n ) -------------------------------------------------------------------------- ------ Inputs ------ s (3,1) semi-major axes u (3,3) principal axes n (1) number of patches ------- Outputs ------- x (n+1,n+1) x-component of vertices of patch y (n+1,n+1) y-component of vertices of patch z (n+1,n+1) z-component of vertices of patch --------------------------------------------------------------------------