mathlayer
®
About
·
Downloads
·
Functions
·
Support
·
Community
eye
>
Functions
>
Math Base
eye(n) returns an n*n identity matrix
eye(n,m) returns an n*m matrix with ones on its main diagonal
Examples
> eye(3)# 1 0 0 0 1 0 0 0 1
> eye(3,2)# 1 0 0 1 0 0
Resources
See also
ones
|
zeros