eye {matlab}R Documentation

MATLAB eye function

Description

Create an identity matrix.

Usage

eye(n, m = n)

Arguments

n, m numeric scalar specifying dimensions for the result

Value

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

Author(s)

P. Roebuck, roebuck@mdanderson.org

See Also

ones, zeros

Examples

eye(3)

[Package matlab version 0.7-8 Index]