eye: MATLAB eye function

Description Usage Arguments Value Author(s) See Also Examples

View source: R/eye.R

Description

Create an identity matrix.

Usage

1
eye(m, n)

Arguments

m, n

numeric scalar specifying dimensions for the result

Value

Returns matrix of order 1. Defaults to square if second dimension argument n not provided.

Author(s)

P. Roebuck proebuck@mdanderson.org

See Also

ones, zeros

Examples

1
eye(3)

matlab documentation built on May 30, 2017, 6:57 a.m.

Search within the matlab package
Search all R packages, documentation and source code