1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
% $Id: eye.Rd 25 2022-05-30 18:46:01Z proebuck $
\name{eye}
\alias{eye}
\title{MATLAB eye function}
\description{
Create an identity matrix.
}
\usage{
eye(m, n)
}
\arguments{
\item{m, n}{numeric scalar specifying dimensions for the result}
}
\value{
Returns matrix of order 1.
Defaults to square if second dimension argument \code{n} not provided.
}
\author{
P. Roebuck \email{proebuck1701@gmail.com}
}
\seealso{
\code{\link{ones}},
\code{\link{zeros}}
}
\examples{
eye(3)
}
\keyword{array}
|