eye: MATLAB eye function

View source: R/eye.R

eyeR 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 proebuck1701@gmail.com

See Also

ones, zeros

Examples

eye(3)

matlab documentation built on July 1, 2024, 5:07 p.m.