Home > freetb4matlab > plot > sphere.m

sphere

PURPOSE ^

% Generates three matrices in @code{meshgrid} format, such that

SYNOPSIS ^

function [xx, yy, zz] = sphere (varargin)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{x}, @var{y}, @var{z}] =} sphere (@var{n})
% @deftypefnx {Function File} {} sphere (@var{h}, @dots{})
% Generates three matrices in @code{meshgrid} format, such that 
% @code{surf (@var{x}, @var{y}, @var{z})} generates a unit sphere. 
% The matrices of @code{@var{n}+1}-by-@code{@var{n}+1}.  If @var{n} is 
% omitted then a default value of 20 is assumed.
%
% Called with no return arguments, @code{sphere} call directly 
% @code{surf (@var{x}, @var{y}, @var{z})}.  If an axes handle is passed
% as the first argument, the surface is plotted to this set of axes.
% @seealso{peaks}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003