Home > freetb4matlab > plot > ndgrid.m

ndgrid

PURPOSE ^

% Given n vectors @var{x1}, @dots{} @var{x}n, @code{ndgrid} returns

SYNOPSIS ^

function varargout = ndgrid (varargin)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{y1}, @var{y2}, @dots{},  @var{y}n] =} ndgrid (@var{x1}, @var{x2}, @dots{}, @var{x}n)
% @deftypefnx {Function File} {[@var{y1}, @var{y2}, @dots{},  @var{y}n] =} ndgrid (@var{x})
% Given n vectors @var{x1}, @dots{} @var{x}n, @code{ndgrid} returns
% n arrays of dimension n. The elements of the i-th output argument
% contains the elements of the vector @var{x}i repeated over all
% dimensions different from the i-th dimension.  Calling ndgrid with
% only one input argument @var{x} is equivalent of calling ndgrid with
% all n input arguments equal to @var{x}:
%
% [@var{y1}, @var{y2}, @dots{},  @var{y}n] = ndgrid (@var{x}, @dots{}, @var{x})
% @seealso{meshgrid}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003