Syntax
Description
[x,y,z] = ellipsoid(xc,yc,zc,xr,yr,zr,n) generates three n+1-by-n+1 matrices so that surf(x,y,z) produces an ellipsoid with center (xc,yc,zc) and radii (xr,yr,zr).
[x,y,z] = ellipsoid(xc,yc,zc,xr,yr,zr) uses n = 20.
ellipsoid(...) with no output arguments graphs the ellipsoid as a surface.
Algorithm
No comments:
Post a Comment