# HG changeset patch # User jwe # Date 1197478027 0 # Node ID e1e9bb54a4407dc519e6ed603aac963a196b832d # Parent 84a2e24c75c82d8757ff9cd8678318b17c54792d [project @ 2007-12-12 16:47:07 by jwe] diff -r 84a2e24c75c8 -r e1e9bb54a440 scripts/plot/ellipsoid.m --- a/scripts/plot/ellipsoid.m Wed Dec 12 16:45:02 2007 +0000 +++ b/scripts/plot/ellipsoid.m Wed Dec 12 16:47:07 2007 +0000 @@ -1,30 +1,35 @@ -## Copyright (C) 2007 Sylvain Pelissier +## Copyright (C) 2007 Sylvain Pelissier +## +## This file is part of Octave. ## -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. ## -## This program is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. ## ## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +## along with Octave; see the file COPYING. If not, see +## . ## -*- texinfo -*- ## @deftypefn {Function File} {[@var{x}, @var{y}, @var{z}] =} ellipsoid (@var{xc},@var{yc}, @var{zc}, @var{xr}, @var{yr}, @var{zr}, @var{n}) ## @deftypefnx {Function File} {} ellipsoid (@var{h}, @dots{}) -## Generates three matrices in @code{meshgrid} format, of an ellipsoid. -## Called with no return arguments, @code{ellipsoid} calls directly -## @code{surf (@var{x}, @var{y}, @var{z})}. If an axes handle is passed -## as the first argument, the the surface is plotted to this set of axes. +## Generate three matrices in @code{meshgrid} format that define an +## ellipsoid. Called with no return arguments, @code{ellipsoid} calls +## directly @code{surf (@var{x}, @var{y}, @var{z})}. If an axes handle +## is passed as the first argument, the the surface is plotted to this +## set of axes. ## @seealso{sphere} ## @end deftypefn -function [xx, yy, zz] = ellipsoid(varargin) +## Author: Sylvain Pelissier + +function [xx, yy, zz] = ellipsoid (varargin) [h, varargin, nargin] = __plt_get_axis_arg__ ((nargout > 0), "ellipsoid", varargin{:});