R: MATLAB eye function

eye {matlab} | R Documentation

## MATLAB eye function

### Description

Create an identity matrix.

### Usage

    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

    eye(3)

[Package matlab version 1.0.2 Index]