https://github.com/cran/pracma
Raw File
Tip revision: c79a04b5074656b36e591191eb8137b70a349932 authored by Hans W. Borchers on 30 June 2014, 00:00:00 UTC
version 1.7.0
Tip revision: c79a04b
meshgrid.Rd
\name{meshgrid}
\alias{meshgrid}
\title{
  Generate a Mesh Grid
}
\description{
  Generate two matrices for use in three-dimensional plots.
}
\usage{
meshgrid(x, y = x)
}
\arguments{
  \item{x}{numerical vector, represents points along the x-axis.}
  \item{y}{numerical vector, represents points along the y-axis.}
}
\details{
  The rows of the output array X are copies of the vector x;
  columns of the output array Y are copies of the vector y.
}
\value{
  Returns two matrices as a list with \code{X} and \code{Y} components.
}
\note{
  The three-dimensional variant \code{meshgrid(x, y, z)} is not yet implemented.
}
\seealso{
\code{\link{outer}}
}
\examples{
meshgrid(1:5)$X
meshgrid(c(1, 2, 3), c(11, 12))
}
\keyword{ array }
back to top