Home > freetb4matlab > plot > meshgrid.m

# meshgrid

## PURPOSE

% Given vectors of @var{x} and @var{y} and @var{z} coordinates, and

## SYNOPSIS

function [xx, yy, zz] = meshgrid (x, y, z)

## DESCRIPTION

```% -*- texinfo -*-
% @deftypefn {Function File} {[@var{xx}, @var{yy}, @var{zz}] =} meshgrid (@var{x}, @var{y}, @var{z})
% @deftypefnx {Function File} {[@var{xx}, @var{yy}] =} meshgrid (@var{x}, @var{y})
% @deftypefnx {Function File} {[@var{xx}, @var{yy}] =} meshgrid (@var{x})
% Given vectors of @var{x} and @var{y} and @var{z} coordinates, and
% returning 3 arguments, return three dimensional arrays corresponding
% to the @var{x}, @var{y}, and @var{z} coordinates of a mesh.  When
% returning only 2 arguments, return matrices corresponding to the
% @var{x} and @var{y} coordinates of a mesh.  The rows of @var{xx} are
% copies of @var{x}, and the columns of @var{yy} are copies of @var{y}.
% If @var{y} is omitted, then it is assumed to be the same as @var{x},
% and @var{z} is assumed the same as @var{y}.
% @seealso{mesh, contour}
% @end deftypefn```

## CROSS-REFERENCE INFORMATION

This function calls:
This function is called by:
• cylinder % Generates three matrices in @code{meshgrid} format, such that
• ellipsoid % Generate three matrices in @code{meshgrid} format that define an
• isosurface %
• pcolor % Density plot for given matrices @var{x}, and @var{y} from @code{meshgrid} and
• peaks % Generate a function with lots of local maxima and minima. The function
• plot3 % Produce three-dimensional plots. Many different combinations of
• 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
• sombrero % Produce the familiar three-dimensional sombrero plot using @var{n}
• sphere % Generates three matrices in @code{meshgrid} format, such that
• surfnorm % Find the vectors normal to a meshgridded surface. The meshed gridded

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