octave: Three-dimensional Geometric Shapes

 
 15.2.2.3 Three-dimensional Geometric Shapes
 ...........................................
 
  -- : cylinder
  -- : cylinder (R)
  -- : cylinder (R, N)
  -- : cylinder (HAX, ...)
  -- : [X, Y, Z] = cylinder (...)
      Plot a 3-D unit cylinder.
 
      The optional input R is a vector specifying the radius along the
      unit z-axis.  The default is [1 1] indicating radius 1 at ‘Z == 0’
      and at ‘Z == 1’.
 
      The optional input N determines the number of faces around the
      circumference of the cylinder.  The default value is 20.
 
      If the first argument HAX is an axes handle, then plot into this
      axes, rather than the current axes returned by ‘gca’.
 
      If outputs are requested ‘cylinder’ returns three matrices in
      ‘meshgrid’ format, such that ‘surf (X, Y, Z)’ generates a unit
      cylinder.
 
      Example:
 
           [x, y, z] = cylinder (10:-1:0, 50);
           surf (x, y, z);
           title ("a cone");
 
DONTPRINTYET       See also: Seeellipsoid XREFellipsoid, *noterectangle:
DONTPRINTYET       See also: Seeellipsoid XREFellipsoid, Seerectangle

      XREFrectangle, Seesphere XREFsphere.
 
  -- : sphere ()
  -- : sphere (N)
  -- : sphere (HAX, ...)
  -- : [X, Y, Z] = sphere (...)
      Plot a 3-D unit sphere.
 
      The optional input N determines the number of faces around the
      circumference of the sphere.  The default value is 20.
 
      If the first argument HAX is an axes handle, then plot into this
      axes, rather than the current axes returned by ‘gca’.
 
      If outputs are requested ‘sphere’ returns three matrices in
      ‘meshgrid’ format such that ‘surf (X, Y, Z)’ generates a unit
      sphere.
 
      Example:
 
           [x, y, z] = sphere (40);
           surf (3*x, 3*y, 3*z);
           axis equal;
           title ("sphere of radius 3");
 
DONTPRINTYET       See also: Seecylinder XREFcylinder, *noteellipsoid:
DONTPRINTYET       See also: Seecylinder XREFcylinder, Seeellipsoid

      XREFellipsoid, Seerectangle XREFrectangle.
 
  -- : ellipsoid (XC, YC, ZC, XR, YR, ZR, N)
  -- : ellipsoid (..., N)
  -- : ellipsoid (HAX, ...)
  -- : [X, Y, Z] = ellipsoid (...)
      Plot a 3-D ellipsoid.
 
      The inputs XC, YC, ZC specify the center of the ellipsoid.  The
      inputs XR, YR, ZR specify the semi-major axis lengths.
 
      The optional input N determines the number of faces around the
      circumference of the cylinder.  The default value is 20.
 
      If the first argument HAX is an axes handle, then plot into this
      axes, rather than the current axes returned by ‘gca’.
 
      If outputs are requested ‘ellipsoid’ returns three matrices in
      ‘meshgrid’ format, such that ‘surf (X, Y, Z)’ generates the
      ellipsoid.
 
DONTPRINTYET       See also: Seecylinder XREFcylinder, *noterectangle:
DONTPRINTYET       See also: Seecylinder XREFcylinder, Seerectangle

      XREFrectangle, Seesphere XREFsphere.