Home > freetb4matlab > plot > surface.m

# surface

## PURPOSE

% Plot a surface graphic object given matrices @var{x}, and @var{y} from

## SYNOPSIS

function retval = surface (varargin)

## DESCRIPTION

```% -*- texinfo -*-
% @deftypefn {Function File} {} surface (@var{x}, @var{y}, @var{z}, @var{c})
% @deftypefnx {Function File} {} surface (@var{x}, @var{y}, @var{z})
% @deftypefnx {Function File} {} surface (@var{z}, @var{c})
% @deftypefnx {Function File} {} surface (@var{z})
% @deftypefnx {Function File} {} surface (@dots{}, @var{prop}, @var{val})
% @deftypefnx {Function File} {} surface (@var{h}, @dots{})
% @deftypefnx {Function File} {@var{h} =} surface (@dots{})
% Plot a surface graphic object given matrices @var{x}, and @var{y} from
% @code{meshgrid} and a matrix @var{z} corresponding to the @var{x} and
% @var{y} coordinates of the surface.  If @var{x} and @var{y} are vectors,
% then a typical vertex is (@var{x}(j), @var{y}(i), @var{z}(i,j)).  Thus,
% columns of @var{z} correspond to different @var{x} values and rows of
% @var{z} correspond to different @var{y} values.  If @var{x} and @var{y}
% are missing, they are constructed from size of the matrix @var{z}.
%
% Any additional properties passed are assigned to the surface.
% @seealso{surf, mesh, patch, line}
% @end deftypefn```

## CROSS-REFERENCE INFORMATION

This function calls:
• axes % Create an axes object and return a handle to it.
• gca % Return a handle to the current axis object. If no axis object
• ishold % Return true if the next line will be added to the current plot, or
This function is called by:
• mesh % Plot a mesh given matrices @var{x}, and @var{y} from @code{meshgrid} and
• meshc % Plot a mesh and contour given matrices @var{x}, and @var{y} from
• pcolor % Density plot for given matrices @var{x}, and @var{y} from @code{meshgrid} and
• ribbon % Plot a ribbon plot for the columns of @var{y} vs. @var{x}. The
• slice % Plot slices of 3D data/scalar fields. Each element of the 3-dimensional
• surf % Plot a surface given matrices @var{x}, and @var{y} from @code{meshgrid} and
• surfc % Plot a surface and contour given matrices @var{x}, and @var{y} from
• surfl % Plot a lighted surface given matrices @var{x}, and @var{y} from @code{meshgrid} and

Generated on Sat 16-May-2009 00:04:49 by m2html © 2003