Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

eye

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)

See Also

Examples

eye(3)

matlab

MATLAB emulation package

v1.0.2
Artistic-2.0
Authors
P. Roebuck
Initial release
2014-06-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.