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