eye
Syntax
eye(X)
Arguments
X is a positive integer.
Details
Return an X by X indentity matrix.
Examples
eye(3);
#0 | #1 | #2 |
---|---|---|
1 | 0 | 0 |
0 | 1 | 0 |
0 | 0 | 1 |
eye(X)
X is a positive integer.
Return an X by X indentity matrix.
eye(3);
#0 | #1 | #2 |
---|---|---|
1 | 0 | 0 |
0 | 1 | 0 |
0 | 0 | 1 |